Closed morrisonbrett closed 9 years ago
There was no option till now. Based on your question, I have added a new command line option in 0.4.2; "-o", so now you can use it for passing arguments to the node script.
sudo forever-service install test --script main.js -o " param1 param2"
Perfect. Thx!
It seems that specifying parameters with a leading dash are interpreted as option to forever-service. Trying to install a service with these options fails:
sudo forever-service install myservice -s index.js -r nodejs -o "-c /confdir"
=> error: unknown option `-c'
Workaround: add a leading space and it will be passed on as a normal parameter
Is there a way to pass command line options into the app?
e.g. $ sudo forever-service install myapp -s "myapp.js -myarg foo"