Skip to content

Instantly share code, notes, and snippets.

@sbalay
Last active September 2, 2016 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sbalay/7aec2aaff1708c6f183d3e21fe76a5cd to your computer and use it in GitHub Desktop.
Save sbalay/7aec2aaff1708c6f183d3e21fe76a5cd to your computer and use it in GitHub Desktop.
bash script to start prerender
#!/bin/bash
#Starts forever after boot through /etc/rc.local. Set the node version in the following script properly.
/home/<user>/.nvm/versions/node/<node version>/bin/forever start /home/<user>/<path to prerender>/server.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment