From c7f9dc0bb97e3c5f6f9e191146fcf5ca0d342695 Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Tue, 26 Jun 2018 11:21:35 -0700 Subject: [PATCH] Remove redundant app start --- backend/app/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/app/__init__.py b/backend/app/__init__.py index e56776b8..8125c40d 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -24,6 +24,7 @@ CXG_API_BASE = os.environ.get("CXG_API_BASE2", default="http://0.0.0.0:5005/api/ if not CONFIG_FILE: raise ValueError("No config file set for Flask application") +# TODO check what is actually being configured here app.config.from_pyfile(os.path.join(CXG_DIR, "config", CONFIG_FILE), silent=True) app.config.update( SECRET_KEY=SECRET_KEY, @@ -58,7 +59,3 @@ app.register_blueprint( app.add_url_rule('/', endpoint='index') - - -if __name__ == "__main__": - app.run(host='0.0.0.0', debug=True, port=5005)