Skip to content

Instantly share code, notes, and snippets.

@magician11 magician11/crontab
Last active Apr 30, 2018

What would you like to do?
How to automatically restart a Node.js script (with forever) on a server reboot
@reboot cd /var/server/script-directory && /root/.nvm/versions/node/v8.11.1/bin/forever start myscript.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.