Skip to content

Instantly share code, notes, and snippets.

@pelletier
Created April 16, 2010 18:01
Show Gist options
  • Save pelletier/368738 to your computer and use it in GitHub Desktop.
Save pelletier/368738 to your computer and use it in GitHub Desktop.
#!/bin/sh
GUNICORN=/usr/local/bin/gunicorn
ROOT=/home/thomas/tex2png/
PID=/var/run/gunicorn.pid
BIND=unix:/tmp/gunicorn.sock
WORKERS=2
APP=app:application
if [ -f $PID ]
then rm $PID
fi
cd $ROOT
exec $GUNICORN --bind=$BIND --workers=$WORKERS --config=$ROOT/gunicorn.conf.py --pid=$PID $APP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment