mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-18 01:14:23 +00:00
Update ApplicationStart.sh
This commit is contained in:
parent
b8996a914c
commit
e1a64ede4b
1 changed files with 1 additions and 8 deletions
|
|
@ -9,16 +9,9 @@ start_backend() {
|
|||
|
||||
start_client() {
|
||||
cd /home/ubuntu/song-recognition/client
|
||||
touch client.txt
|
||||
|
||||
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
nvm install 16
|
||||
nvm use 16
|
||||
npm install
|
||||
npm run build
|
||||
nohup serve -s build > client.log 2>&1 &
|
||||
}
|
||||
|
||||
start_backend && start_client
|
||||
start_backend
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue