From 4d6d761915f2e2d1c3a5413585cca06a9a8e55bf Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 18 Nov 2018 18:50:53 +0100 Subject: [PATCH] Bind to port 5000 with gunicorn. Less frequently used. --- Pipfile | 2 +- ansible/roles/supervisor/templates/xppl.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index f4916e7..00d4ff1 100644 --- a/Pipfile +++ b/Pipfile @@ -30,5 +30,5 @@ tox = "*" [scripts] devserver = "bash -c 'FLASK_APP=scripts/devserver.py flask run'" 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'" diff --git a/ansible/roles/supervisor/templates/xppl.conf.j2 b/ansible/roles/supervisor/templates/xppl.conf.j2 index 82a0cd9..bffa807 100644 --- a/ansible/roles/supervisor/templates/xppl.conf.j2 +++ b/ansible/roles/supervisor/templates/xppl.conf.j2 @@ -4,7 +4,7 @@ programs=xppl-rqlite,xppl-flask [program:xppl-flask] user = 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 [program:xppl-rqlite]