Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
#!/bin/sh | ||
# Starts sharefest server "daemon" | ||
# Using forever (npm install forever -g) | ||
|
||
# run in production mode (port 443 and 80) | ||
export NODE_ENV=production | ||
#export WS_SERVER="`curl http://169.254.169.254/latest/meta-data/public-ipv4`" | ||
#export WS_PORT=443 | ||
|
||
# enforce https | ||
export REQUIRE_HTTPS=1 | ||
|
||
# configure logs | ||
NOW=$(date +"%F") | ||
|
||
# stop existing if found | ||
forever stop server.js | ||
forever start -e err.log -o out.log -l $NOW.log --append server.js | ||
|
||
# | ||
forever start -e err.log -o out.log -l $NOW.log --append server.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters