from os import environ

from . import app, is_debug
from .assets import register_assets
from .common import get_app_version

# emit git hash and register a helper function for templates
app.logger.info('{} is now running using code {}'.format(app.name, get_app_version()))
app.jinja_env.globals.update(get_app_version=get_app_version)

register_assets(app)

app.run(
    debug=is_debug,
    host='0.0.0.0',
    port=environ.get('SERVER_PORT', 8080)
)

@@ -351,16 +351,34 @@
 s(app)%0A%0A
+%0Adef start():%0A    
 app.run(
@@ -378,16 +378,20 @@
 pp.run(%0A
+    
     debu
@@ -402,16 +402,20 @@
 _debug,%0A
+    
     host
@@ -426,16 +426,20 @@
 0.0.0',%0A
+    
     port
@@ -472,10 +472,14 @@
 , 8080)%0A
+    
 )%0A

One instance of app is enough