Skip to content

Commit

Permalink
docs: update faq for -c option
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tjhosford authored and remy committed Dec 4, 2017
1 parent f3e0c29 commit 0b1bf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0b1bf13

Please sign in to comment.