rollerverbrauch/main.py

18 lines
398 B
Python
Raw Normal View History

2016-04-18 08:13:27 +02:00
import os
2016-07-03 19:29:30 +02:00
from app import app
import logging
from config import config
def setup_logging():
logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', level=logging.INFO)
2015-03-06 21:58:53 +01:00
if __name__ == '__main__':
c = config[os.getenv('FLASK_CONFIG') or 'default']
DEBUG = c.DEBUG
DEBUG = os.environ.get('DEBUG', DEBUG)
setup_logging()
2016-04-18 08:13:27 +02:00
app.run(debug=DEBUG, host='0.0.0.0')