Browse Source

app: fixing missing config

Nikola Kotur 10 years ago
parent
commit
68224a8237
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -5,5 +5,5 @@ from phosic.utils import setup_logging
 app = flask_app.app
 
 if __name__ == '__main__':
-    setup_logging(verbose=config.get('DEBUG', False), stderr=not config.get('DEBUG', False), color=True, appname="phosic")
-    app.run(port=config.get('PORT'), debug=app.config.get('DEBUG', False))
+    setup_logging(verbose=app.config.get('DEBUG', False), stderr=not app.config.get('DEBUG', False), color=True, appname="phosic")
+    app.run(port=app.config.get('PORT'), debug=app.config.get('DEBUG', False))