Skip to content

Instantly share code, notes, and snippets.

@d1b1
Last active December 11, 2015 04:48
Show Gist options
  • Save d1b1/4547665 to your computer and use it in GitHub Desktop.
Save d1b1/4547665 to your computer and use it in GitHub Desktop.
Simple bash command to start forever. Defines all the log settings and the --SourceDir syntax.
forever stopall
ROOT='/var/www/myapp'
forever start \
-l ${ROOT}/logs/manage-all.log \
-o ${ROOT}/logs/manage-out.log \
-e ${ROOT}/logs/manage-err.log \
-a \
--sourceDir ${ROOT}/manager/ \
web.js
echo "Setup the MyApp Process"
//TW- 2/4/13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment