[mod] live build of a theme: LIVE_THEME=simple make run

Environment variable to get live builds while modifying CSS & JS of a theme::

    LIVE_THEME=simple make run

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-12-29 21:28:25 +01:00
parent 1706b130a4
commit c7f2740414
4 changed files with 29 additions and 12 deletions

11
manage
View file

@ -117,6 +117,17 @@ fi
# needed by sphinx-docs
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
}
buildenv() {
# settings file from repository's working tree are used by default