Skip to content

Instantly share code, notes, and snippets.

@KobraCai
Last active Dec 21, 2015
Embed
What would you like to do?
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