live reload server

This commit is contained in:
Alex Janka 2024-01-08 09:17:17 +11:00
parent 77eae861fa
commit e9018b84c0
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target /target
/test-config /test-config
.trigger

6
watch.sh Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
(
trap 'kill 0' SIGINT
cargo watch -x check -s 'touch .trigger' &
cargo watch --no-vcs-ignores -w .trigger -x "run -- --config-dir test-config watch"
)