diff --git a/scripts/ApplicationStart.sh b/scripts/start_server.sh similarity index 85% rename from scripts/ApplicationStart.sh rename to scripts/start_server.sh index fd12b64..fef510a 100644 --- a/scripts/ApplicationStart.sh +++ b/scripts/start_server.sh @@ -1,8 +1,7 @@ #!/usr/bin/env bash -start_backend() { +start_server() { cd /home/ubuntu/song-recognition - touch back.txt go build -tags netgo -ldflags '-s -w' -o app nohup ./app > backend.log 2>&1 & } @@ -14,4 +13,4 @@ start_client() { nohup serve -s build > client.log 2>&1 & } -start_backend +start_server