mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 13:19:17 +02:00
[fix] is_werkzeug_reload_active is not realted to python -m
Werkzeug's reloader is not active when was server is launched by uWSGI. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
20ce88a274
commit
33729439c5
1 changed files with 4 additions and 0 deletions
|
@ -1373,6 +1373,10 @@ def is_werkzeug_reload_active() -> bool:
|
|||
https://werkzeug.palletsprojects.com/en/stable/serving/#werkzeug.serving.run_simple
|
||||
"""
|
||||
|
||||
if "uwsgi" in sys.argv:
|
||||
# server was launched by uWSGI
|
||||
return False
|
||||
|
||||
# https://github.com/searxng/searxng/pull/1656#issuecomment-1214198941
|
||||
# https://github.com/searxng/searxng/pull/1616#issuecomment-1206137468
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue