Skip to content

Commit

Permalink
wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxfsf committed May 10, 2024
1 parent 52d43a4 commit 8adfdf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ EXPOSE 5000

# gunicorn -w animanga_project.wsgi:application
# CMD ["gunicorn", "-w", "4", "animanga_project.wsgi:application", "--bind", "0.0.0.0:8000"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:create_app()"]
CMD ["gunicorn","-w","4", "--bind", "0.0.0.0:5000", "app.wsgi:app"]


5 changes: 5 additions & 0 deletions backend/app/wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from .app import app

# do some production specific things to the app
app.config['DEBUG'] = False

0 comments on commit 8adfdf4

Please sign in to comment.