We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab53058 commit 74caee3Copy full SHA for 74caee3
runserver.py
@@ -11,7 +11,12 @@
11
app.config['APPLICATION_ROOT'] = '/'
12
13
if __name__ == '__main__':
14
+ if len(sys.argv) == 3:
15
+ hostIP = port=sys.argv[2]
16
+ else :
17
+ hostIP = '0.0.0.0'
18
+
19
if len(sys.argv) == 2:
- app.run(debug=True, host='0.0.0.0', port=sys.argv[1])
20
+ app.run(debug=True, host=hostIP, port=sys.argv[1])
21
else:
- app.run(debug=True, host='0.0.0.0', port=8100)
22
+ app.run(debug=True, host=hostIP, port=8100)
0 commit comments