Skip to content

Instantly share code, notes, and snippets.

@adierebel
Last active September 28, 2017 16:00
Show Gist options
  • Save adierebel/7a53c77745ab7e8a59cde104b789829b to your computer and use it in GitHub Desktop.
Save adierebel/7a53c77745ab7e8a59cde104b789829b to your computer and use it in GitHub Desktop.
Flask Runner
from sys import argv
from app import app
try:
Port = 8080
if len(argv) > 1:
Port = int(argv[1])
app.run(host='0.0.0.0', port=Port, debug=True)
except Exception as e:
print ("Something went wrong, process terminated...")
print ("Error Report: " + str(e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment