Bind to port 5000 with gunicorn. Less frequently used.

This commit is contained in:
Luke Murphy 2018-11-18 18:50:53 +01:00
parent a8a646b1c7
commit 4d6d761915
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 2 additions and 2 deletions

View File

@ -30,5 +30,5 @@ tox = "*"
[scripts] [scripts]
devserver = "bash -c 'FLASK_APP=scripts/devserver.py flask run'" devserver = "bash -c 'FLASK_APP=scripts/devserver.py flask run'"
devshell = "bash -c 'FLASK_APP=scripts/devshell.py flask shell'" devshell = "bash -c 'FLASK_APP=scripts/devshell.py flask shell'"
prodserver = "gunicorn --worker-class eventlet -w 1 wsgi:app" prodserver = "gunicorn --bind 127.0.0.1:5000 --worker-class eventlet -w 1 wsgi:app"
prodshell = "bash -c 'FLASK_APP=wsgi.py flask shell'" prodshell = "bash -c 'FLASK_APP=wsgi.py flask shell'"

View File

@ -4,7 +4,7 @@ programs=xppl-rqlite,xppl-flask
[program:xppl-flask] [program:xppl-flask]
user = xppl user = xppl
directory = /var/xppl directory = /var/xppl
command = pipenv run gunicorn --worker-class eventlet -w 1 wsgi:app command = pipenv run gunicorn --bind 127.0.0.1:5000 --worker-class eventlet -w 1 wsgi:app
priority = 999 priority = 999
[program:xppl-rqlite] [program:xppl-rqlite]