Files
homebridge/script/server
Jon Maddox 8d94366e3c do it
2015-09-14 23:39:46 -04:00

13 lines
252 B
Bash
Executable File

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