node.js - Crontab forever start in production mode -
I'm playing ghost blog on the MEAN stack. I'm always using it to keep the blog alive after starting it I also set up crossback to launch the Forever Start command on the server reboot.
How do I start it in production mode with CrossBab? If I do this directly in the command line, then I will do this:
NODE_ENV = output always start index.js this works great , But the following line in my cronab ignores the output mode part and starts in development mode:
@reboot NODE_ENV = output / USR / local / bin / forever start / Path / blog / index .js
If you want to search for all the lines If you want to set the details of the variable, then like it:
NODE_ENV = output @reboot / usr / local / bin / always start / path / / / blog < P> Unfortunately you need to set it to be a .sh to line up.
Comments
Post a Comment