fix: persist runtime settings next to database so they survive redeploys
This commit is contained in:
parent
b6a0987236
commit
06d87eb600
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
|
@ -213,7 +213,7 @@ def decrypt_value(ciphertext):
|
||||||
|
|
||||||
def settings_file_path():
|
def settings_file_path():
|
||||||
"""Return the path to the persistent runtime settings JSON file."""
|
"""Return the path to the persistent runtime settings JSON file."""
|
||||||
return Path(current_app.config['UPLOAD_FOLDER']).parent / current_app.config['SETTINGS_FILE']
|
return Path(current_app.config['DATABASE']).parent / current_app.config['SETTINGS_FILE']
|
||||||
|
|
||||||
|
|
||||||
def load_booth_settings():
|
def load_booth_settings():
|
||||||
|
|
|
||||||
Reference in a new issue