Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

uWsgi config file for django project

By: jimyeh on Jun 14th, 2012  |  syntax: INI file  |  size: 0.46 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [uwsgi]
  2. # set the http port if you run it as standalone
  3. # http = :80
  4. # change to django project directory
  5. chdir = /path/to/my/proj
  6. # load django 1.4 project
  7. module = proj.wsgi:application
  8. # Setup socket
  9. # socket = /tmp/uwsgi.sock
  10. # socket = :3030
  11. # Setup zeromq tcp protocol
  12. zeromq = tcp://127.0.0.1:9999,tcp://127.0.0.1:9998
  13. processes = 1
  14. max-requests = 5000
  15. enable-threads = false
  16. threads = 2
  17. master = true
  18. vacuum = true
  19. daemonize = logs/uwsgi.log
clone this paste RAW Paste Data