rollerverbrauch/app/main.py

13 lines
333 B
Python
Raw Permalink Normal View History

2016-04-18 08:13:27 +02:00
import os
2016-04-23 23:08:39 +02:00
from rollerverbrauch import app
import logging
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__':
2016-04-18 08:13:27 +02:00
DEBUG = 'DEBUG' in os.environ and os.environ['DEBUG'] != 'False'
setup_logging()
2016-04-18 08:13:27 +02:00
app.run(debug=DEBUG, host='0.0.0.0')