mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
docs: update faq for -c option
Add quotations for -c option Otherwise the terminal cannot tell whether `--exitcrash` is an option for `nodemon` or `forever`, causing it to fail to start
This commit is contained in:
2
faq.md
2
faq.md
@@ -125,7 +125,7 @@ To achieve this you need to add the following on the call to `forever`:
|
||||
* Optionally add the `--uid` parameter, adding a unique name for your process. In the example, the uid is set to `foo`.
|
||||
|
||||
```bash
|
||||
forever start --uid foo --killSignal=SIGTERM -c nodemon --exitcrash server.js
|
||||
forever start --uid foo --killSignal=SIGTERM -c 'nodemon --exitcrash' server.js
|
||||
```
|
||||
|
||||
To test this, you can kill the server.js process and forever will restart it. If you `touch server.js` nodemon will restart it.
|
||||
|
||||
Reference in New Issue
Block a user