[odrs-web/production] Do not use the config file for the openshift overrides
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/production] Do not use the config file for the openshift overrides
- Date: Mon, 26 Sep 2016 10:04:49 +0000 (UTC)
commit 0e1d90f35dadd5ce3ea471b39865ee16de16c892
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 26 11:04:40 2016 +0100
Do not use the config file for the openshift overrides
flaskapp.cfg | 8 --------
flaskapp.py | 5 ++---
2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/flaskapp.py b/flaskapp.py
index df50489..67dc21f 100755
--- a/flaskapp.py
+++ b/flaskapp.py
@@ -15,7 +15,7 @@ from database import ReviewsDatabase, CursorError
from user import OdrsUser
app = Flask(__name__)
-app.config.from_pyfile('flaskapp.cfg')
+app.config.from_object(__name__)
app.register_blueprint(api10, url_prefix='/1.0/reviews')
app.register_blueprint(admin, url_prefix='/admin')
@@ -75,8 +75,7 @@ def static_resource(resource):
return send_from_directory('static/', resource)
if __name__ == '__main__':
- if not 'OPENSHIFT_APP_DNS' in os.environ:
- app.debug = True
+ app.debug = True
# we need this
if not 'ODRS_REVIEWS_SECRET' in os.environ:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]