Browse files

start app script

  • Loading branch information...
1 parent 5e87f50 commit 3c015207590645303d1b99f289e3327b0d6ecded @zackster committed Mar 4, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 start_app.sh
View
10 start_app.sh
@@ -1,14 +1,12 @@
#!/bin/bash
-echo "$NODE_ENV"
(
cd /opt/chat-staging/;
git reset --hard HEAD;
git pull;
+killall screen;
+export NODE_DEBUG=module;
NODE_ENV=staging;
-echo "Set NODE_ENV to $NODE_ENV";
-node leaderboard.js & node app.js;
-echo "Started leaderboard.js";
-echo "Started app.js";
+screen -d -m node leaderboard.js;
+screen -d -m node app.js;
)
-echo "NODE_ENV is now $NODE_ENV"

0 comments on commit 3c01520

Please sign in to comment.