diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-06-12 12:47:42 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-06-12 12:47:42 +0200 |
commit | 6d76d9b20255d8bd0a0cfd1620ec07047a28bff1 (patch) | |
tree | eac8ce463d5c8a58a6e4d6e0f62f8f204ddeda58 /searx/webapp.py | |
parent | 343ac7197d9e6468b52be38b73e7d59045bbe909 (diff) | |
download | searxng-6d76d9b20255d8bd0a0cfd1620ec07047a28bff1.tar.gz searxng-6d76d9b20255d8bd0a0cfd1620ec07047a28bff1.zip |
[fix] load engines if debug mode is enabled using uwsgi
Diffstat (limited to 'searx/webapp.py')
-rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index fcea5f280..29b0ce6af 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -120,7 +120,9 @@ app.jinja_env.trim_blocks = True app.jinja_env.lstrip_blocks = True app.secret_key = settings['server']['secret_key'] -if not searx_debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true": +if not searx_debug \ + or os.environ.get("WERKZEUG_RUN_MAIN") == "true" \ + or os.environ.get('UWSGI_ORIGINAL_PROC_NAME') is not None: initialize_engines(settings['engines']) babel = Babel(app) |