From 6852cd03caec617c341f4648d56d9d1df00ca46d Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Fri, 17 May 2024 15:34:18 +0100 Subject: [PATCH] Update ApplicationStart.sh --- scripts/ApplicationStart.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/ApplicationStart.sh b/scripts/ApplicationStart.sh index 278f2c4..6584c4b 100644 --- a/scripts/ApplicationStart.sh +++ b/scripts/ApplicationStart.sh @@ -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 & }