feat: add justfile recipe to kill backgrounded preview servers

This commit is contained in:
randogoth 2026-10-06 08:24:19 +03:00
parent 5131f1f53f
commit 05be426f91

View file

@ -21,3 +21,11 @@ preview-all:
just tobias &
just randogoth &
wait
# Kill any backgrounded preview servers (flux, tobias, randogoth)
stop:
# [.] rather than a literal dot: pkill -f also matches whatever shell is
# running this very command, since its argv contains the pattern text
# too. A dot there would self-match; the bracket form only matches the
# real server processes' plain "pelicanconf.py", not its own argv.
pkill -f 'pelicanconf[.]py' || true