From 36210463e5baeae307c362c47e906b0a30fe4bed Mon Sep 17 00:00:00 2001 From: Vishal Saranathan Date: Sun, 17 Sep 2023 10:41:14 -0400 Subject: [PATCH] deployment --- backend/application.py | 2 +- backend/utils.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/application.py b/backend/application.py index 1675be9..8578d78 100644 --- a/backend/application.py +++ b/backend/application.py @@ -8,7 +8,7 @@ sauron = Flask(__name__) -PATH = "config.json" +PATH = "config.example.json" sauron = config_app(sauron, path=PATH) CORS(sauron) conn = get_connection() diff --git a/backend/utils.py b/backend/utils.py index 7a1b20e..caa320b 100644 --- a/backend/utils.py +++ b/backend/utils.py @@ -17,10 +17,10 @@ def config_app(app, path): """ Populates environment variables """ try: - with open(path, encoding='utf-8') as config_file: - data = json.load(config_file) - for keys in data.keys(): - os.environ[keys] = data[keys] + # with open(path, encoding='utf-8') as config_file: + # data = json.load(config_file) + # for keys in data.keys(): + # os.environ[keys] = data[keys] app.secret_key = os.environ.get("SECRET") or os.urandom(24) app.config["SESSION_TYPE"] = os.environ.get("SESSION_TYPE", None) app.config["SESSION_PERMANENT"] = True if os.environ.get(