mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-19 09:54:22 +00:00
Update ApplicationStart.sh
This commit is contained in:
parent
df2e09d14e
commit
9c2d3168d6
1 changed files with 2 additions and 4 deletions
|
|
@ -1,21 +1,19 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
start_backend() {
|
start_backend() {
|
||||||
touch back.txt
|
|
||||||
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 &
|
||||||
echo "Backend started successfully."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_client() {
|
start_client() {
|
||||||
touch client.txt
|
|
||||||
cd /home/ubuntu/song-recognition/client
|
cd /home/ubuntu/song-recognition/client
|
||||||
|
touch client.txt
|
||||||
nvm install 16
|
nvm install 16
|
||||||
nvm use 16
|
nvm use 16
|
||||||
npm run build
|
npm run build
|
||||||
nohup serve -s build > client.log 2>&1 &
|
nohup serve -s build > client.log 2>&1 &
|
||||||
echo "Client started successfully."
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start_backend && start_client
|
start_backend && start_client
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue