parent
5de03bf8d1
commit
39692a0333
@ -0,0 +1,3 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
npm run build |
@ -0,0 +1,31 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
set -e |
||||
|
||||
echo "Starting the python server..." |
||||
|
||||
pushd backend |
||||
source venv/bin/activate |
||||
|
||||
FRONTEND_PATH=$(realpath ../frontend) python main.py & |
||||
pid_backend=$! |
||||
|
||||
trap_ctrlc() { |
||||
kill $pid_backend |
||||
} |
||||
|
||||
trap trap_ctrlc INT |
||||
|
||||
popd |
||||
|
||||
sleep 3 |
||||
|
||||
echo "Building frontend..." |
||||
|
||||
pushd frontend |
||||
npm run build |
||||
popd |
||||
|
||||
echo "Done!" |
||||
|
||||
wait |
Loading…
Reference in new issue