Skip to content

Instantly share code, notes, and snippets.

@MollsReis
Created November 14, 2014 19:31
Show Gist options
  • Save MollsReis/3e0c8d479f307c006f0c to your computer and use it in GitHub Desktop.
Save MollsReis/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