Skip to content

Commit

Permalink
fix: kill processes when exiting dev script
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse committed Oct 6, 2024
1 parent 9e27eb4 commit f7d4333
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/usr/bin/env bash

trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
simple-http-server -i output &
watchexec -e md,html,rs,css cargo run -- -p &
watchexec -e md,html,rs,css cargo run -- -p

0 comments on commit f7d4333

Please sign in to comment.