Skip to content

Commit

Permalink
use gunicorn wsgi server
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-leonhardt committed Jul 1, 2015
1 parent 1c1596d commit cf23390
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Flask
PyYAML
argparse
requests
requests
gunicorn
2 changes: 1 addition & 1 deletion start-scripts/supervisord-docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket
; supervisor.

[program:sensu-grid]
command=/usr/bin/python /opt/sensu-grid/sensugrid.py ; the program (relative uses PATH, can take args)
command=/opt/sensu-grid/bin/gunicorn -w 3 -b 0.0.0.0:5000 --chdir /opt/sensu-grid sensugrid:app
priority=999 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
Expand Down
2 changes: 1 addition & 1 deletion start-scripts/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ serverurl=unix:///var/tmp/supervisor.sock ; use a unix:// URL for a unix socket
; supervisor.

[program:sensu-grid]
command=/opt/sensu-grid/bin/python /opt/sensu-grid/sensugrid.py ; the program (relative uses PATH, can take args)
command=/opt/sensu-grid/bin/gunicorn -w 3 -b 0.0.0.0:5000 --chdir /opt/sensu-grid sensugrid:app
priority=999 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
Expand Down

0 comments on commit cf23390

Please sign in to comment.