Created
November 14, 2014 19:31
-
-
Save MollsReis/3e0c8d479f307c006f0c to your computer and use it in GitHub Desktop.
Express + Forever start script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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