We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0c7e19 commit 963fda0Copy full SHA for 963fda0
app.py
@@ -1,3 +1,4 @@
1
+import os
2
from flask import Flask, request, render_template
3
4
from inspector import ImgLinkInspector
@@ -13,5 +14,5 @@ def root():
13
14
15
16
if __name__ == '__main__':
- # Threaded option to enable multiple instances for multiple user access support
17
- app.run(threaded=True, port=5000)
+ port = int(os.environ.get("PORT", 5000))
18
+ app.run(threaded=True, port=port)
0 commit comments