Skip to content
Snippets Groups Projects
Commit fed5cc5fcd9a authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Allow to customize DEBUG configuration using environment

parent 6f5bce8a64d4
No related branches found
No related tags found
No related merge requests found
......@@ -677,8 +677,11 @@
mail_handler.setFormatter(formatter)
if __name__ == '__main__':
app.config['CDN_DEBUG'] = True
app.run(debug=True, extra_files=[
app.config['CDN_DEBUG'] = ast.literal_eval(
os.environ.get('CDN_DEBUG', 'True'))
app.run(
debug=ast.literal_eval(os.environ.get('DEBUG', 'True')),
extra_files=[
'templates',
'templates/service_providers',
'templates/events',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment