From 45f4029509b3cca921a2e356dc2e3acbdd52d8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20J=C4=99dyk?= Date: Thu, 9 Jun 2022 20:39:59 +0200 Subject: [PATCH] gunicorn fix --- Dockerfile | 2 +- ayct_backend/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f13609b..001786c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,4 @@ COPY . . RUN pip3 install -r requirements.txt EXPOSE 5000/udp EXPOSE 5000/tcp -CMD ["gunicorn", "-b", "0.0.0.0:5000", "ayct_backend:app", "--timeout", "120"] \ No newline at end of file +CMD ["gunicorn", "-b", "0.0.0.0:5000", "ayct_backend:create_app()", "--timeout", "120"] \ No newline at end of file diff --git a/ayct_backend/__init__.py b/ayct_backend/__init__.py index 4f782f7..4dee880 100644 --- a/ayct_backend/__init__.py +++ b/ayct_backend/__init__.py @@ -26,4 +26,4 @@ def create_app(): def hello(): return "Hello world!" - return app \ No newline at end of file + return app