fix: stopping dev environment

This commit is contained in:
2025-11-11 22:00:30 +01:00
parent 9b8f3ee904
commit e6f0e61908

18
dev.sh
View File

@@ -1,9 +1,23 @@
#!/bin/bash #!/bin/bash
trap ctrl_c INT
function ctrl_c() {
stop
exit 0
}
function stop() {
kill %2
kill %1
./gradlew --stop
wait
}
./gradlew classes --continuous & ./gradlew classes --continuous &
./gradlew bootRun & ./gradlew bootRun &
npm run watch npm run watch
kill %2 stop
kill %1