Skip to content

Instantly share code, notes, and snippets.

@vojd
Created October 9, 2012 13:50
Show Gist options
  • Save vojd/3858937 to your computer and use it in GitHub Desktop.
Save vojd/3858937 to your computer and use it in GitHub Desktop.
Gunicorn run in debug mode
---- starting ----
#!/bin/bash
python ./manage.py run_gunicorn -b 0.0.0.0:8001 -p /tmp/gunicorn.pid --daemon --access-logfile /var/log/gunicorn.log
echo "Server started, \n using PID /tmp/gunicorn.pid"
----- stopping ----
#!/bin/bash
kill `cat /tmp/gunicorn.pid`
echo "Gunicorn stopped"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment