seek-tune/scripts/start_server.sh
2024-05-18 07:27:53 +01:00

16 lines
320 B
Bash

#!/usr/bin/env bash
start_server() {
cd /home/ubuntu/song-recognition
go build -tags netgo -ldflags '-s -w' -o app
nohup ./app > backend.log 2>&1 &
}
start_client() {
cd /home/ubuntu/song-recognition/client
npm install
npm run build
nohup serve -s build > client.log 2>&1 &
}
start_server