Skip to content

Commit

Permalink
Fixes 502 Gateway error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-McAdam committed May 26, 2020
1 parent 368aa18 commit c42fa89
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker
web: gunicorn startup:app -w 4 -k uvicorn.workers.UvicornWorker
Empty file added src/app/__init__.py
Empty file.
File renamed without changes.
Empty file added src/tests/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions startup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# startup.py
# points gunicorn at our main.py within the src/app directory
from src.app.main import app

0 comments on commit c42fa89

Please sign in to comment.