mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-18 09:24:19 +00:00
Create applicationStart.sh
This commit is contained in:
parent
27ba102eb6
commit
f9dac6247a
1 changed files with 17 additions and 0 deletions
17
scripts/applicationStart.sh
Normal file
17
scripts/applicationStart.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
start_backend() {
|
||||||
|
go build -tags netgo -ldflags '-s -w' -o app
|
||||||
|
nohup ./app > backend.log 2>&1 &
|
||||||
|
echo "Backend started successfully."
|
||||||
|
}
|
||||||
|
|
||||||
|
start_client() {
|
||||||
|
cd /client
|
||||||
|
nvm use 16
|
||||||
|
npm run build
|
||||||
|
nohup serve -s build > client.log 2>&1 &
|
||||||
|
echo "Client started successfully."
|
||||||
|
}
|
||||||
|
|
||||||
|
start_backend && start_client
|
||||||
Loading…
Add table
Reference in a new issue