diff --git a/scripts/ApplicationStart.sh b/scripts/ApplicationStart.sh index b48b99c..278f2c4 100644 --- a/scripts/ApplicationStart.sh +++ b/scripts/ApplicationStart.sh @@ -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