Skip to content

Instantly share code, notes, and snippets.

@jeremyjbowers
Created February 15, 2013 15:53
Show Gist options
  • Select an option

  • Save jeremyjbowers/4961259 to your computer and use it in GitHub Desktop.

Select an option

Save jeremyjbowers/4961259 to your computer and use it in GitHub Desktop.
My favorite (current) uwsgi config
description "uWSGI server for APP_NAME"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env ENV_THINGY=my_env
script
/usr/local/bin/uwsgi \
--virtualenv /home/ubuntu/apps/APP_NAME/virtualenv \
--chdir /home/ubuntu/apps/APP_NAME/repository \
--file APP.py \
--touch-reload /home/ubuntu/apps/APP_NAME/repository/APP.py \
--callable app \
--logto /var/log/uwsgi.log \
--die-on-term \
-p 1 \
-s :9000
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment