add Scripts to Rule Them All

This commit is contained in:
Jon Maddox
2015-09-14 22:53:49 -04:00
parent 8131f6936e
commit 6f71faf355
6 changed files with 75 additions and 0 deletions

12
script/server Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
forever=`which forever`
test -z "$NODE_ENV" &&
export NODE_ENV='development'
if [ "$NODE_ENV" = "development" ]; then
$forever -f startup/forever/development.json
else
$forever start startup/forever/production.json
fi