fix: stopping dev environment
This commit is contained in:
18
dev.sh
18
dev.sh
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user