Added port via env
This commit is contained in:
5 files changed
+19
-8
No files matched your search
+2
-1
@@ -64,4 +64,5 @@ def index():
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=(FLASK_ENV == "development"), host="0.0.0.0", port=5000)
|
||||
port = int(os.getenv("PORT", 5000))
|
||||
app.run(debug=(FLASK_ENV == "development"), host="0.0.0.0", port=port)
|
||||
Reference in new issue
Block a user