We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222135c commit 721412dCopy full SHA for 721412d
requirements.txt
@@ -1 +1 @@
1
-Flask<1
+flask
runserver.py
@@ -1,11 +1,11 @@
-import os
+from os import environ
2
from HelloFlask import app
3
4
if __name__ == '__main__':
5
- HOST = os.environ.get('SERVER_HOST', 'localhost')
+ HOST = environ.get('SERVER_HOST', 'localhost')
6
7
try:
8
- PORT = int(os.environ.get('SERVER_PORT', '5555'))
+ PORT = int(environ.get('SERVER_PORT', '5555'))
9
except ValueError:
10
PORT = 5555
11
0 commit comments