seek-tune/scripts/ApplicationStart.sh
2024-05-17 14:21:28 +01:00

19 lines
396 B
Bash

#!/usr/bin/env bash
start_backend() {
cd /home/ubuntu/song-recognition
touch back.txt
go build -tags netgo -ldflags '-s -w' -o app
nohup ./app > backend.log 2>&1 &
}
start_client() {
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 &
}
start_backend && start_client