diff --git a/Procfile b/Procfile index 5c18dec..fc272ab 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: python -m src.server $PORT \ No newline at end of file +web: gunicorn wsgi:app \ No newline at end of file diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..217ab4a --- /dev/null +++ b/wsgi.py @@ -0,0 +1,7 @@ +import os + +from src.server import app + +if __name__ == "__main__": + port = int(os.environ.get("PORT", 33507)) + app.run(host="0.0.0.0", port=port)