Browse Source

Add start/import scripts

master
Gautier P 1 year ago
parent
commit
9c5afac91c
  1. 2
      import.sh
  2. 18
      start.sh

2
import.sh

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

18
start.sh

@ -0,0 +1,18 @@ @@ -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
Loading…
Cancel
Save