#!flask/bin/python
from app import app

# The app will spawn twice because of the reloader  set this to stop the behaviour
# ref. http://stackoverflow.com/questions/25504149/why-does-running-the-flask-dev-server-run-itself-twice
# app.run(port=5000, debug=True, host='0.0.0.0', use_reloader=False)

app.run(host='127.0.0.1', port=5000, debug=True, use_evalex=False, use_reloader=False)


@@ -292,16 +292,65 @@
 False)%0A%0A
+# start server and allow binding to local host%0A# 
 app.run(
@@ -409,28 +409,162 @@
 False, use_reloader=False)%0A%0A
+# start server and allow binding to any address%0Aapp.run(host='0.0.0.0', port=5000, debug=True, use_evalex=False, use_reloader=False)%0A%0A

set default server start in non-secure mode (host='0.0.0.0') by default, to allow binding to any address