Created
February 5, 2013 13:45
-
-
Save jsleetw/4714542 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#start command, stores pid in a file in /tmp | |
sudo python manage.py run_gunicorn -p /tmp/gunicorn.pid -b 127.0.0.1:8000 --daemon | |
#save as ./start | |
#stop command | |
sudo kill `cat /tmp/gunicorn.pid` #note those aren't apostrophes, but the ~ key | |
#save as ./stop | |
#restart commad | |
sudo kill -HUP `cat /tmp/gunicorn.pid` | |
#save as ./restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment