Skip to content

Instantly share code, notes, and snippets.

@EvilScott
Created November 14, 2014 19:31
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 EvilScott/3e0c8d479f307c006f0c to your computer and use it in GitHub Desktop.
Save EvilScott/3e0c8d479f307c006f0c to your computer and use it in GitHub Desktop.
Express + Forever start script
#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
"$DIR/node_modules/.bin/forever" start \
--watch --watchDirectory ${DIR} \
--watchIgnore "$DIR/.*/*" \
--watchIgnore "$DIR/public/*" \
--watchIgnore "$DIR/logs/*" \
--append -l "$DIR/logs/app.log" \
--minUptime 1000 \
--spinSleepTime 1000 \
app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment