diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-10-31 15:40:55 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-10-31 15:40:55 +0100 |
commit | 4a15d675d5478c1d350335e106879622c541f3c2 (patch) | |
tree | c15e191d5421d411a32d6a40822a68e767edaccf /Makefile | |
parent | e697d78d5a907014252df9aec79d981b800aac91 (diff) | |
download | searxng-4a15d675d5478c1d350335e106879622c541f3c2.tar.gz searxng-4a15d675d5478c1d350335e106879622c541f3c2.zip |
[fix] make.run - use SEARX_DEBUG=1 instead of modifing settings.yml
Reloading webapp.py when a file is changed exit with error::
$ make run
....
INFO:werkzeug: * Detected change in 'searx/searx/engines/deviantart.py', reloading
INFO:werkzeug: * Restarting with stat
ERROR:searx:server.secret_key is not changed. Please use something else instead of ultrasecretkey.
make: *** [Makefile:69: run] Error 1
Patch suggested by @dalf [1]
[1] https://github.com/searx/searx/issues/2278#issuecomment-719732579
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -66,13 +66,10 @@ clean: pyclean docs-clean node.clean test.clean PHONY += run run: buildenv pyenvinstall $(Q) ( \ - sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \ sleep 2 ; \ xdg-open http://127.0.0.1:8888/ ; \ - sleep 3 ; \ - sed -i -e "s/debug : True/debug : False/g" ./searx/settings.yml ; \ ) & - $(PY_ENV)/bin/python ./searx/webapp.py + SEARX_DEBUG=1 $(PY_ENV)/bin/python ./searx/webapp.py # docs # ---- |