From a5f4159a496f6730d44f52601e606b3ed9abae7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20J=C4=99dyk?= Date: Thu, 9 Jun 2022 20:45:55 +0200 Subject: [PATCH] FIX GUNICORN 2 --- Dockerfile | 2 +- ayct_backend/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 001786c..f13609b 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:create_app()", "--timeout", "120"] \ No newline at end of file +CMD ["gunicorn", "-b", "0.0.0.0:5000", "ayct_backend:app", "--timeout", "120"] \ No newline at end of file diff --git a/ayct_backend/__init__.py b/ayct_backend/__init__.py index 4dee880..9a22515 100644 --- a/ayct_backend/__init__.py +++ b/ayct_backend/__init__.py @@ -27,3 +27,5 @@ def create_app(): return "Hello world!" return app + +app = create_app()