Skip to content

Commit 3da0cd2

Browse files
committed
Added PORT from env
1 parent 2783c57 commit 3da0cd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wsgi.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
"""
22
Web Server Gateway Interface (WSGI) entry point
33
"""
4+
5+
import os
46
from service import create_app
57

8+
PORT = int(os.getenv("PORT", "8000"))
9+
610
app = create_app()
711

812
if __name__ == "__main__":
9-
app.run(host='0.0.0.0')
13+
app.run(host="0.0.0.0", port=PORT)

0 commit comments

Comments
 (0)