ciclos

commit ca76b180b32efddd6b9ccd0d1dfe5e1f0c432598

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

If we are on the dev environment allow flask to debug

 app.py | 8 ++++++--


diff --git a/app.py b/app.py
index 0667a45e288a5f669b249ed64a32eddfa530478d..81271684ebd2d88f4d1c8b1a34b23197a3c9a4bc 100644
--- a/app.py
+++ b/app.py
@@ -1,5 +1,9 @@
 from core.app import app
-from core.config import read_from_config
+from core.config import read_from_config, env
 
 if __name__ == '__main__':
-    app.run()
+    debug = False
+    if env == "dev":
+        debug = True
+
+    app.run(debug = debug)