Skip to content

Instantly share code, notes, and snippets.

@SachaG
Created April 15, 2013 03:46
Show Gist options
  • Save SachaG/5385567 to your computer and use it in GitHub Desktop.
Save SachaG/5385567 to your computer and use it in GitHub Desktop.
#!/bin/sh
killall node
#NODE_ARGS="--prof --prof_lazy --log"
#NODE_ARGS="--prof --log"
#!/bin/sh
RC=1
while [ $RC -ne 0 ]; do
SERVER_ID=`cd Sidebar/ ; git rev-list -1 HEAD` PORT=80 MAIL_URL= XXXX MONGO_URL=XXXX ROOT_URL= http://sidebar.io nohup node $NODE_ARGS bundle/main.js >> /tmp/meteor.log 2>&1 &
RC=$?
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment