From e3bf06ca61d74f174961a7354a6fe6d706a321ce Mon Sep 17 00:00:00 2001 From: Charlotte Weaver Date: Fri, 6 Jul 2018 10:13:24 -0700 Subject: [PATCH] Config file no longer necessary Config is solely from environment variables instead. --- server/app/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/app/__init__.py b/server/app/__init__.py index 0ebc4e71..92415348 100644 --- a/server/app/__init__.py +++ b/server/app/__init__.py @@ -13,7 +13,6 @@ Compress(app) CORS(app) # Config -CONFIG_FILE = os.environ.get("CXG_CONFIG_FILE", default="scanpy-test.cfg") CXG_DIR = os.environ.get("CXG_DIRECTORY", default="/Users/charlotteweaver/Documents/Git/cxg-v2/data/") SECRET_KEY = os.environ.get("CXG_SECRET_KEY", default="SparkleAndShine") ENGINE = os.environ.get("CXG_ENGINE", default="scanpy") @@ -21,11 +20,6 @@ TITLE = os.environ.get("DATASET_TITLE", default="PBMC 3K") # TODO remove the 2 when this is prod 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, CXG_API_BASE=CXG_API_BASE,