Update and rename ApplicationStart.sh to start_server.sh

This commit is contained in:
Chigozirim Igweamaka 2024-05-18 07:27:53 +01:00 committed by GitHub
parent 6685aea30f
commit 8c48d86a3c

View file

@ -1,8 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
start_backend() { start_server() {
cd /home/ubuntu/song-recognition cd /home/ubuntu/song-recognition
touch back.txt
go build -tags netgo -ldflags '-s -w' -o app go build -tags netgo -ldflags '-s -w' -o app
nohup ./app > backend.log 2>&1 & nohup ./app > backend.log 2>&1 &
} }
@ -14,4 +13,4 @@ start_client() {
nohup serve -s build > client.log 2>&1 & nohup serve -s build > client.log 2>&1 &
} }
start_backend start_server