Skip to content

Instantly share code, notes, and snippets.

@kuropen
Last active August 29, 2015 14:00
Show Gist options
  • Save kuropen/11321818 to your computer and use it in GitHub Desktop.
Save kuropen/11321818 to your computer and use it in GitHub Desktop.
Shell script to execute a node.js script with daemonized by forever which is installed under management of nodebrew
#!/bin/bash
cd /home/kuropen1/nodehost/elecwarn3-web
PORT=61595 /home/kuropen1/.nodebrew/current/bin/forever start -c /home/kuropen1/.nodebrew/current/bin/node app.js > ~/tmp/forever-start.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment