gunicorn.py 804 B

1234567891011121314151617181920212223242526272829303132
  1. # See: http://docs.gunicorn.org/en/stable/settings.html
  2. # Directory where to store logs, PIDfile, etc.
  3. _data_dir = 'data/'
  4. # Set app_mode to either 'prod', 'test' or 'dev'.
  5. # 'prod' is normal running mode. 'test' is used for running test suites.
  6. # 'dev' is similar to normal mode but with reload and debug enabled.
  7. _app_mode = 'dev'
  8. bind = "0.0.0.0:8000"
  9. workers = 4
  10. worker_class = 'gevent'
  11. max_requests = 512
  12. #user = "user"
  13. #group = "group"
  14. raw_env = 'APP_MODE={}'.format(_app_mode)
  15. # Set this to the directory containing logs, etc.
  16. # The path must end with a slash.
  17. #chdir = "/usr/local/lakesuperior/"
  18. daemon = _app_mode=='prod'
  19. pidfile = _data_dir + "run/fcrepo.pid"
  20. reload = _app_mode=='dev'
  21. accesslog = _data_dir + "log/gunicorn-access.log"
  22. errorlog = _data_dir + "log/gunicorn-error.log"