From db23e9140064c51c5367979f9970d2c16aed0dd9 Mon Sep 17 00:00:00 2001 From: c00lerxo Date: Tue, 11 Dec 2018 12:35:20 +0100 Subject: [PATCH] Add Gunicorn server --- Procfile | 1 + __pycache__/cat_or_not.cpython-36.pyc | Bin 146 -> 159 bytes cat_or_not.py | 2 +- requirements.txt | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 9a15983..3205624 100644 --- a/Procfile +++ b/Procfile @@ -1 +1,2 @@ +web: gunicorn cat_or_not heroku ps:scale web=1 diff --git a/__pycache__/cat_or_not.cpython-36.pyc b/__pycache__/cat_or_not.cpython-36.pyc index 87b4ec8effd550f3d1eaa6e25f7658f8773c24c2..63f3e4d07d947954f0bf49903cdcefc06d24e2eb 100644 GIT binary patch delta 54 zcmbQlIG>Tzn3tF9_yYbI<%yhXjEoZv#AKL?m>3usZgD3T6y#(kCzfR9=dENYVgZU3 Ju}loL1psZ|4dnm; delta 41 vcmbQwIEj(dn3tF9)m6S2k%^pYj0_VE#P}JDm>3usRx%VZ1F0hBiAlBq!!ii4 diff --git a/cat_or_not.py b/cat_or_not.py index d099b92..e13c02e 100644 --- a/cat_or_not.py +++ b/cat_or_not.py @@ -1 +1 @@ -from app import app +from app import app as application diff --git a/requirements.txt b/requirements.txt index aebab05..c6c1951 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,6 +9,7 @@ google-auth==1.6.1 google-cloud-vision==0.35.1 googleapis-common-protos==1.5.5 grpcio==1.17.0 +gunicorn==19.9.0 idna==2.8 itsdangerous==1.1.0 Jinja2==2.10