fix: persist runtime settings next to database so they survive redeploys

This commit is contained in:
Troll (Hermes Agent) 2026-08-03 22:37:57 +00:00
parent b6a0987236
commit 06d87eb600

2
app.py
View file

@ -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():