Update ApplicationStart.sh

This commit is contained in:
Chigozirim Igweamaka 2024-05-17 14:21:28 +01:00 committed by GitHub
parent df2e09d14e
commit 9c2d3168d6

View file

@ -1,21 +1,19 @@
#!/usr/bin/env bash
start_backend() {
touch back.txt
cd /home/ubuntu/song-recognition
touch back.txt
go build -tags netgo -ldflags '-s -w' -o app
nohup ./app > backend.log 2>&1 &
echo "Backend started successfully."
}
start_client() {
touch client.txt
cd /home/ubuntu/song-recognition/client
touch client.txt
nvm install 16
nvm use 16
npm run build
nohup serve -s build > client.log 2>&1 &
echo "Client started successfully."
}
start_backend && start_client