From a29ea046039966ed2266724a198e32d2a1da94ab Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Mon, 25 Nov 2019 14:42:11 +0100 Subject: [PATCH] add gunicorn to README and requirements --- README.md | 6 ++++++ requirements.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 27323c6..65ce8be 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ env FLASK_APP=qurator/sbb_ner/webapp/app.py env FLASK_ENV=development env USE_CU Set USE_CUDA=False, if you do not have a GPU available/installed. + +For production purposes rather use +``` +gunicorn --bind 0.0.0.0:5000 qurator.sbb_ner.webapp.wsgi:app +``` + # Docker ## CPU-only: diff --git a/requirements.txt b/requirements.txt index 1edf2fc..6b47ac8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,4 +14,5 @@ cloudpickle pytest pytest-cov flask +gunicorn somajo