-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
20 lines (15 loc) · 670 Bytes
/
run.py
File metadata and controls
20 lines (15 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- encoding: utf-8 -*-
from flask_minify import Minify
from sys import exit
from apps.logger import AppLogging
from apps.config import app_config
from apps import create_app
app = create_app(app_config)
if not app_config.DEBUG:
Minify(app=app, html=True, js=False, cssless=False)
if app_config.DEBUG:
AppLogging.logger.info('DEBUG = ' + str(app_config.DEBUG) )
AppLogging.logger.info('Page Compression = ' + 'FALSE' if app_config.DEBUG else 'TRUE' )
AppLogging.logger.info('ASSETS_ROOT = ' + app_config.ASSETS_ROOT )
if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000, debug=True, load_dotenv=True)