Skip to content

Instantly share code, notes, and snippets.

@KobraCai
Last active December 21, 2015 13:29
Show Gist options
  • Save KobraCai/6313174 to your computer and use it in GitHub Desktop.
Save KobraCai/6313174 to your computer and use it in GitHub Desktop.
Launch
#!/bin/bash
PIDFILE=/agora/agora-supervisord.pid
ROOTD=/home/cobrakai/.virtualenvs/agora2
cd $ROOTD
. $ROOTD/bin/activate
if [ -f $PIDFILE ]; then
kill `cat -- $PIDFILE`
rm -f -- $PIDFILE
fi
python /agora/manage.py run_gunicorn -b 0.0.0.0:8090 -w 3 -p $PIDFILE --user=cobrakai --group=users --log-level=debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment