on master help sign in
[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>

commit4a15d675d5478c1d350335e106879622c541f3c2 authorMarkus Heiser <markus.heiser@darmarit.de> dateSat 31 Oct 2020, 15:40 (6 years ago) parente697d78
1 file changed+1−4
Makefile+1−4
Makefile+1−4
@@ -66,13 +66,10 @@ clean: pyclean docs-clean node.clean test.clean
6666PHONY += run
6767run: buildenv pyenvinstall
6868 $(Q) ( \
69− sed -i -e "s/debug : False/debug : True/g" ./searx/settings.yml ; \
7069 sleep 2 ; \
7170 xdg-open http://127.0.0.1:8888/ ; \
72− sleep 3 ; \
73− sed -i -e "s/debug : True/debug : False/g" ./searx/settings.yml ; \
7471 ) &
75− $(PY_ENV)/bin/python ./searx/webapp.py
72+ SEARX_DEBUG=1 $(PY_ENV)/bin/python ./searx/webapp.py
7673
7774# docs
7875# ----