Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart when app crashed. #165

Open
zhangweis opened this issue Sep 6, 2022 · 1 comment
Open

Restart when app crashed. #165

zhangweis opened this issue Sep 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@zhangweis
Copy link

zhangweis commented Sep 6, 2022

I'd like to use denon as for forever of nodejs.
When the app crashes, it says 'app crashed - waiting for file changes before starting ...' and I'd like it to restart it automatically.
At least an option to restart when an app crashed.

@zhangweis zhangweis added the enhancement New feature or request label Sep 6, 2022
@Hexagon
Copy link

Hexagon commented Mar 24, 2023

Check out https://github.com/hexagon/pup for an alternative supporting this and much more.

The most simple mode, without a configuration file is documented in the "Single command usage" section of https://hexagon.github.io/pup/usage.html

To restart a process on errors, and also when a file in the current directory changes, the command should be

pup -nAc "deno run my-script.ts" -w .

Where -w . is short for --watch . which watches the current directory (.)

-n is short for --no-config

-A is short for --autostart

-c is short for --cmd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants