2021-01-21 10:36:44 +01:00
|
|
|
#!/bin/sh -ev
|
|
|
|
|
|
|
|
function clean_up {
|
|
|
|
|
|
|
|
# Perform program exit housekeeping
|
|
|
|
kill $SERVE_PID $YARN_PID
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2021-02-12 11:51:10 +01:00
|
|
|
python -m flatisfy serve --config config.json -v &
|
2021-01-21 10:36:44 +01:00
|
|
|
SERVE_PID=$!
|
|
|
|
|
|
|
|
yarn watch:dev &
|
|
|
|
YARN_PID=$!
|
|
|
|
|
|
|
|
trap clean_up SIGHUP SIGINT SIGTERM
|
|
|
|
|
|
|
|
wait $SERVE_PID $YARN_PID
|