Created
October 16, 2013 23:26
-
-
Save jniltinho/7016753 to your computer and use it in GitHub Desktop.
Setup Quokka + Gunicorn
This file contains 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
#!/bin/bash | |
## Install and Configure Quokka + Gunicorn | |
## Link: http://www.onurguzel.com/how-to-run-flask-applications-with-nginx-using-gunicorn/ | |
## Link: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ | |
quokka_folder="/home/quokka/quokka-env" | |
$quokka_folder/bin/pip install gunicorn | |
$quokka_folder/bin/gunicorn -u quokka -g quokka --chdir $quokka_folder/quokka --bind 0.0.0.0 wsgi | |
## As Daemon | |
## $quokka_folder/bin/gunicorn -u quokka -g quokka --chdir $quokka_folder/quokka --bind 0.0.0.0 wsgi --daemon | |
## or Default 127.0.0.1:8000 (localhost) | |
## $quokka_folder/bin/gunicorn -u quokka -g quokka --chdir $quokka_folder/quokka wsgi | |
chown -R quokka:quokka $quokka_folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment