mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-16 13:20:56 +00:00
add Scripts to Rule Them All
This commit is contained in:
12
script/server
Executable file
12
script/server
Executable 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
|
||||
Reference in New Issue
Block a user