This commit is contained in:
Jon Maddox
2015-09-14 23:39:46 -04:00
parent 950e6a8211
commit 8d94366e3c

View File

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