gunicorn.conf 373 B

123456789101112131415161718192021
  1. # -*- coding: utf-8 -*-
  2. APP_NAME = "test"
  3. bind = "unix:/var/run/%s.sock" % APP_NAME
  4. #bind = '127.0.0.1:8000'
  5. workers = 1
  6. worker_class = "gevent"
  7. worker_connections = 500
  8. timeout = 60
  9. daemon = False
  10. pidfile = "/var/run/%s.pid" % APP_NAME
  11. chdir = "/root/project/test/project/"
  12. errorlog = "/data/log/web/%s.log" % APP_NAME
  13. loglevel = "info"
  14. accesslog = "-"
  15. reload = True