Various changes

This commit is contained in:
Dobie Wollert
2013-06-17 04:08:57 -04:00
parent a5f054cbbf
commit b92068b6b2
12 changed files with 179 additions and 13 deletions

9
start2.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
TIMESTAMP=$(date +"%m.%d.%Y at %H:%M:%S")
while true;
do
NODE_ENV='prod' node/bin/node server.js >> logs/portal.log
echo "-------------------------------Shutdown / Crash-------------------------------" >> logs/portal.log
echo "Server was reset on $TIMESTAMP" >> logs/crash.log
notify_by_pushover -u aJmPD4KigO0vLwim76n3WqWKwbKA3k -a YxspDLz3WinbPmwBThuZXCME9QmkDb -s 'falling' -t "Portal Reset" -m "Biomed portal was reset on $TIMESTAMP . See the log file for more details"
done