Skip to content

Commit

Permalink
deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalS99 committed Sep 17, 2023
1 parent 6a8cb36 commit 3621046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3621046

Please sign in to comment.