seek-tune/scripts/ApplicationStart.sh
2024-05-17 13:35:00 +01:00

21 lines
477 B
Bash

#!/usr/bin/env bash
start_backend() {
touch back.txt
cd /home/ubuntu/song-recognition
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
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