Esempio n. 1
0
from flaskstarter import app

if __name__ == "__main__":
    app.run()
Esempio n. 2
0
"""Run Develoipment Server."""

import os
import logging
from flaskstarter import app


print('APP CONFIG --> {}'.format(os.environ['APP_SETTINGS']))
print('APP DB_URL --> {}'.format(app.config['SQLALCHEMY_DATABASE_URI']))

if app.debug:
    #  supress INFO level logs when debug
    log = logging.getLogger('werkzeug')
    log.setLevel(logging.ERROR)

app.run(debug=True, threaded=True, port=5000, use_reloader=False)

Esempio n. 3
0
from flaskstarter import app

if __name__ == "__main__":
    app.run(debug=True)  # We will set debug false in production