From 046966a79fb53e11327791fba931281a23108f27 Mon Sep 17 00:00:00 2001 From: CelestialCrafter Date: Tue, 23 Jan 2024 14:42:29 -0600 Subject: [PATCH] fix gunicorn --- Dockerfile | 2 +- src/app.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e8981d..6a9133c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ COPY . . EXPOSE 80 WORKDIR /app/src ENV WSGI 1 -CMD ["conda", "run", "--no-capture-output", "-n", "auto-trading", "gunicorn", "app:get_app", "--config", "config.py"] +CMD ["conda", "run", "--no-capture-output", "-n", "auto-trading", "gunicorn", "app:app", "--config", "config.py"] diff --git a/src/app.py b/src/app.py index 2240b85..d9e442d 100644 --- a/src/app.py +++ b/src/app.py @@ -35,6 +35,3 @@ def start_price_cache(): if __name__ == '__main__': start_price_cache() app.run() - -def get_app(): - return app