From e284c2d733327fee9eda68e65a64cbddaf8ebb96 Mon Sep 17 00:00:00 2001 From: siepra Date: Thu, 21 Mar 2024 10:40:52 +0100 Subject: [PATCH] chore: try setting source in scripts --- aws/scripts/after-install.sh | 6 ++---- aws/scripts/application-start.sh | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/aws/scripts/after-install.sh b/aws/scripts/after-install.sh index 1b16405..c6996ff 100644 --- a/aws/scripts/after-install.sh +++ b/aws/scripts/after-install.sh @@ -1,5 +1,3 @@ -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +source /home/ubuntu/.profile -/home/ubuntu/.nvm/versions/node/v18.12.1/bin/npm i +npm i diff --git a/aws/scripts/application-start.sh b/aws/scripts/application-start.sh index 704a00f..bf998d3 100644 --- a/aws/scripts/application-start.sh +++ b/aws/scripts/application-start.sh @@ -1,5 +1,3 @@ -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +source /home/ubuntu/.profile -/home/ubuntu/.nvm/versions/node/v18.12.1/bin/npm run start +npm run start