suryadi / Flask Launcher

22 Oct 2017 at 02:10

Download
1 from sys import argv
2 from app import app
3
4 try:
5 Port = 5001
6 if len(argv) > 1 :
7 Port = int(argv[1])
8
9 app.run(host='0.0.0.0', port=Port, debug=True)
10
11 except Exception as e:
12 print ("Something went wrong, process terminated...")
13 print ("Error Report: " + str(e))

Comments (0)