commit
b51955771f
@ -1,5 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
reap() {
|
||||||
|
kill -TERM $child
|
||||||
|
sleep 0.1
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
trap reap TERM INT
|
||||||
|
|
||||||
# If a command fails, exit the script
|
# If a command fails, exit the script
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -7,4 +15,7 @@ set -e
|
|||||||
cd "$(dirname "${0}")/.."
|
cd "$(dirname "${0}")/.."
|
||||||
|
|
||||||
# Launch the app
|
# Launch the app
|
||||||
pipenv run python app.py ${@}
|
pipenv run python app.py ${@} &
|
||||||
|
child=$!
|
||||||
|
|
||||||
|
wait $child
|
||||||
|
Loading…
x
Reference in New Issue
Block a user