Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Created October 16, 2013 23:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jniltinho/7016753 to your computer and use it in GitHub Desktop.
Save jniltinho/7016753 to your computer and use it in GitHub Desktop.
Setup Quokka + Gunicorn
#!/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