Skip to content

Instantly share code, notes, and snippets.

@tony
Last active December 29, 2015 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tony/7634462 to your computer and use it in GitHub Desktop.
Save tony/7634462 to your computer and use it in GitHub Desktop.
Using readthedocs uwsgi local

If the virtualenv is in checkouts/readthedocs.org/.env (before the readthedocs module), from inside of checkouts:

$ uwsgi_python \
--chdir $PWD \
--processes 4 --threads 2 \
--socket 127.0.0.1:3031 --http-socket 127.0.0.1:3032 \
--stats 127.0.0.1:9191 \
--module "readthedocs.wsgi:application" \
--home .env \
--env DJANGO_SETTINGS_MODULE=readthedocs.settings.sqlite \
--pythonpath .env --pythonpath readthedocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment