Skip to content

Commit

Permalink
Added PORT from env
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Feb 5, 2024
1 parent 2783c57 commit 3da0cd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
"""
Web Server Gateway Interface (WSGI) entry point
"""

import os
from service import create_app

PORT = int(os.getenv("PORT", "8000"))

app = create_app()

if __name__ == "__main__":
app.run(host='0.0.0.0')
app.run(host="0.0.0.0", port=PORT)

0 comments on commit 3da0cd2

Please sign in to comment.