diff options
author | Alexandre Flament <alex@al-f.net> | 2021-06-03 12:03:38 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-06-03 12:03:38 +0200 |
commit | a7d575c09945c3db458c0cc5c65a0d1d83af2d86 (patch) | |
tree | 32ac3b08aa848754e2a8f44000f06e1032ea18cb | |
parent | 3ce1b40512d8a9d0e93fc0bbe154881961e196b1 (diff) | |
download | searxng-a7d575c09945c3db458c0cc5c65a0d1d83af2d86.tar.gz searxng-a7d575c09945c3db458c0cc5c65a0d1d83af2d86.zip |
[enh] flask debug mode: reload the app when searx/settings.yml changes
-rwxr-xr-x | searx/webapp.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 5c77f5548..9b97b3efc 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -114,6 +114,7 @@ from searx.languages import language_codes as languages from searx.search import SearchWithPlugins, initialize as search_initialize from searx.network import stream as http_stream from searx.search.checker import get_result as checker_get_result +from searx.settings_loader import get_default_settings_path # set Unix thread name try: @@ -1331,7 +1332,10 @@ def run(): use_debugger=searx_debug, port=settings['server']['port'], host=settings['server']['bind_address'], - threaded=True + threaded=True, + extra_files=[ + get_default_settings_path() + ], ) |