Commits

Dan Colish  committed 1afb7d7

Add gunicorn config

  • Participants
  • Parent commits 8594f58
  • Branches lodgeit

Comments (0)

Files changed (1)

File conf/gunicorn.ini

+bind = "0.0.0.0:8000"
+workers = 5
+loglevel = 'info'
+
+def when_ready(server):
+    from lodgeit import config
+    from lodgeit.wsgi.application import make_app
+    server.app.callable = make_app(debug=config.get('lodgeit', 'debug'))