summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-07-25 17:40:33 +0200
committerGitHub <noreply@github.com>2025-07-25 17:40:33 +0200
commit168fa9b09bc84210922ad879aae65ff9c452c4e4 (patch)
treede9fef385997d87bd2f2e598416e3829cc052eb0 /manage
parent83adda8567909b6077706195d8695aa58f5e9700 (diff)
[mod] make run: start granian server and versioning by Dependabot (#5037)
The new ``requirements-server.txt`` (granian) is installed into the virtualenv of Dockerfile. When ``make run`` is called, a granian server is started with auto reload on application's files changes / requires granian[reload] extra, see ``requirements-dev.txt``. Dependabot supports updates to any ``.txt`` file [1]. [1] https://docs.github.com/en/code-security/dependabot/ecosystems-supported-by-dependabot/supported-ecosystems-and-repositories#pip-and-pip-compile Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage15
1 files changed, 14 insertions, 1 deletions
diff --git a/manage b/manage
index 22f3ae821..cf3abbca6 100755
--- a/manage
+++ b/manage
@@ -126,7 +126,20 @@ webapp.run() {
sleep 3
xdg-open http://127.0.0.1:8888/
)&
- SEARXNG_DEBUG=1 pyenv.cmd python -m searx.webapp
+ SEARXNG_DEBUG=1 \
+ GRANIAN_RELOAD="true" \
+ GRANIAN_RELOAD_IGNORE_WORKER_FAILURE="true" \
+ GRANIAN_RELOAD_PATHS="./searx" \
+ GRANIAN_PROCESS_NAME="searxng" \
+ GRANIAN_INTERFACE="wsgi" \
+ GRANIAN_HOST="::" \
+ GRANIAN_PORT="8888" \
+ GRANIAN_WEBSOCKETS="false" \
+ GRANIAN_LOOP="uvloop" \
+ GRANIAN_BLOCKING_THREADS="4" \
+ GRANIAN_WORKERS_KILL_TIMEOUT="30" \
+ GRANIAN_BLOCKING_THREADS_IDLE_TIMEOUT="300" \
+ pyenv.cmd granian searx.webapp:app
}
# shellcheck disable=SC2119