1
0
mirror of https://github.com/searxng/searxng.git synced 2024-07-04 16:30:16 +02:00

Merge pull request #694 from return42/fix-c7f27404

[fix] debug console (pdb) in a session started by `make run`
This commit is contained in:
Martin Fischer 2022-01-05 18:40:46 +01:00 committed by GitHub
commit a7199bc085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
manage
View File

@ -121,14 +121,18 @@ fi
export DOCS_BUILD export DOCS_BUILD
webapp.run() { webapp.run() {
SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp & local parent_proc="$$"
sleep 3 (
if [ "${LIVE_THEME}" ]; then if [ "${LIVE_THEME}" ]; then
themes.live "${LIVE_THEME}" & ( themes.live "${LIVE_THEME}" )
fi kill $parent_proc
xdg-open http://127.0.0.1:8888/ fi
wait -n )&
kill 0 (
sleep 3
xdg-open http://127.0.0.1:8888/
)&
SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp
} }
buildenv() { buildenv() {