mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-15 06:13:11 +01:00
do it
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
forever=`which forever`
|
FOREVER_PATH=`which forever`
|
||||||
|
|
||||||
test -z "$NODE_ENV" &&
|
test -z "$NODE_ENV" &&
|
||||||
export NODE_ENV='development'
|
export NODE_ENV='development'
|
||||||
|
|
||||||
if [ "$NODE_ENV" = "development" ]; then
|
if [ "$NODE_ENV" = "development" ]; then
|
||||||
$forever -f startup/forever/development.json
|
$FOREVER_PATH -f startup/forever/development.json
|
||||||
else
|
else
|
||||||
$forever start startup/forever/production.json
|
$FOREVER_PATH start startup/forever/production.json
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user