zapty / forever-service

Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS
https://github.com/zapty/forever-service
MIT License
594 stars 65 forks source link

pass --flag to scriptOptions param #101

Closed ASafaeirad closed 1 year ago

ASafaeirad commented 6 years ago

I want to pass flag param as scriptOptions to my service but I get

error: unknown option `--flag`.

how can I do it?

arvind-agarwal commented 6 years ago

Please provide the full command you have used for provisioning the service.

ASafaeirad commented 6 years ago

forever-service install server --script dist/index.js --scriptOptions '--prod' will result error: unknown option `--prod`.

but it worked by adding extra space before the param as below: forever-service install server --script dist/index.js --scriptOptions ' --prod'