Closed nvcken closed 9 years ago
I would try forever-service install myservice -f " -c nodemon" -o " --exitcrash"
@nvcken did that work for you?
I have not test complete yet, because after I run script by following your guide, I run "service myservice_name start" I get error
/etc/init.d/myservice_name : line 61 : forever command not found
starting myservice_name
/etc/init.d/myservice_name : line 75 : forever command not found
I put export PATH=/usr/local/bin:$PATH Then service start was working. Now, I try test when system restart
@arvind-agarwal Yes, It works, Thank you
you can use -e "PATH=/usr/local/bin:\$PATH" as the parameter in forever-service cli to add the PATH variable to your startup script
I usually start node app by following command forever start -c nodemon app.js --exitcrash
how can I make forever-service work with nodemon ?