summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorArtikusHG <artiomoleynic@gmail.com>2022-12-16 19:43:10 +0000
committerGitHub <noreply@github.com>2022-12-16 19:43:10 +0000
commit735e388cec91097cc95bfffd0e1a5e4c25e595ef (patch)
tree61aac219bb9d5d3ce91ce5214171c9170c28502c /manage
parent1f8f8c1e91040fd10bacdc473b8d5f97dda6424e (diff)
parent2a51c856722df19831c20ba455f74a33180a4ec8 (diff)
Merge branch 'master' into fasttext
Diffstat (limited to 'manage')
-rwxr-xr-xmanage12
1 files changed, 12 insertions, 0 deletions
diff --git a/manage b/manage
index c887826e2..d61237984 100755
--- a/manage
+++ b/manage
@@ -32,6 +32,12 @@ export NODE_MINIMUM_VERSION="16.13.0"
BLACK_OPTIONS=("--target-version" "py37" "--line-length" "120" "--skip-string-normalization")
BLACK_TARGETS=("--exclude" "searx/static,searx/languages.py" "--include" 'searxng.msg|\.pyi?$' "searx" "searxng_extra" "tests")
+_dev_redis_sock="/usr/local/searxng-redis/run/redis.sock"
+# set SEARXNG_REDIS_URL if it is not defined and "{_dev_redis_sock}" exists.
+if [ -S "${_dev_redis_sock}" ] && [ -z "${SEARXNG_REDIS_URL}" ]; then
+ export SEARXNG_REDIS_URL="unix://${_dev_redis_sock}?db=0"
+fi
+
pylint.FILES() {
# List files tagged by comment:
@@ -65,6 +71,8 @@ help() {
cat <<EOF
buildenv:
rebuild ./utils/brand.env
+webapp.:
+ run : run developer instance
weblate.:
push.translations: push translation changes from SearXNG to Weblate's counterpart
to.translations: Update 'translations' branch with last additions from Weblate.
@@ -121,6 +129,10 @@ pygments.:
EOF
go.help
static_help
+ cat <<EOF
+environment ...
+ SEARXNG_REDIS_URL : ${SEARXNG_REDIS_URL}
+EOF
}