summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-05 18:40:46 +0100
committerGitHub <noreply@github.com>2022-01-05 18:40:46 +0100
commita7199bc08552fbd3a8cf8b257aeded5b26591afb (patch)
tree156ab6c717d77901f15a2012c7580bdd15b3dd69 /manage
parent00d3a7477c01981a6ef2d396332670ad5b831fa6 (diff)
parentc9cfa6181bdbec630e90c6bb729996eb28cacf90 (diff)
Merge pull request #694 from return42/fix-c7f27404
[fix] debug console (pdb) in a session started by `make run`
Diffstat (limited to 'manage')
-rwxr-xr-xmanage20
1 files changed, 12 insertions, 8 deletions
diff --git a/manage b/manage
index 9f99ad4fa..3f367268b 100755
--- a/manage
+++ b/manage
@@ -121,14 +121,18 @@ fi
export DOCS_BUILD
webapp.run() {
- SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp &
- sleep 3
- if [ "${LIVE_THEME}" ]; then
- themes.live "${LIVE_THEME}" &
- fi
- xdg-open http://127.0.0.1:8888/
- wait -n
- kill 0
+ local parent_proc="$$"
+ (
+ if [ "${LIVE_THEME}" ]; then
+ ( themes.live "${LIVE_THEME}" )
+ kill $parent_proc
+ fi
+ )&
+ (
+ sleep 3
+ xdg-open http://127.0.0.1:8888/
+ )&
+ SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp
}
buildenv() {