From 9c2d3168d68a333c2632cbd806cbd8dd51e14e9c Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Fri, 17 May 2024 14:21:28 +0100 Subject: [PATCH] Update ApplicationStart.sh --- scripts/ApplicationStart.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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