Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fix gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialCrafter committed Jan 23, 2024
1 parent a68e034 commit 046966a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 0 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ def start_price_cache():
if __name__ == '__main__':
start_price_cache()
app.run()

def get_app():
return app

0 comments on commit 046966a

Please sign in to comment.