Update ApplicationStart.sh

This commit is contained in:
Chigozirim Igweamaka 2024-05-17 15:34:18 +01:00 committed by GitHub
parent 4a6b3496ec
commit 6852cd03ca

View file

@ -10,8 +10,13 @@ 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 &
}