Add start/import scripts

This commit is contained in:
Gautier P 2021-01-21 10:36:44 +01:00
부모 c6f711030a
커밋 9c5afac91c
2개의 변경된 파일20개의 추가작업 그리고 0개의 파일을 삭제

2
import.sh Executable file
파일 보기

@ -0,0 +1,2 @@
#!/bin/sh -ev
python -m flatisfy import --config config.json --new-only -v "$@"

18
start.sh Executable file
파일 보기

@ -0,0 +1,18 @@
#!/bin/sh -ev
function clean_up {
# Perform program exit housekeeping
kill $SERVE_PID $YARN_PID
exit
}
python -m flatisfy serve --config config.json &
SERVE_PID=$!
yarn watch:dev &
YARN_PID=$!
trap clean_up SIGHUP SIGINT SIGTERM
wait $SERVE_PID $YARN_PID