blog_projekty/obliczanie_pi/start.sh

24 lines
326 B
Bash
Raw Normal View History

2024-11-04 09:30:41 +00:00
#!/bin/bash
go run ./golang/main.go &
GO_PID=$!
pip install flask flask-cors
python3 ./python/main.py &
PYTHON_PID=$!
cd node
yarn install
cd ..
node ./node/index.js &
NODE_PID=$!
function stop_scripts {
echo "Zamykanie skryptów..."
kill $GO_PID $PYTHON_PID $NODE_PID
exit 0
}
trap stop_scripts SIGINT
wait