Skip to content

Commit

Permalink
fix: add nvm to script files
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Mar 20, 2024
1 parent 2ffbbc5 commit 1e1c00a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions aws/scripts/after-install.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
source /home/ubuntu/.profile
npm i
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

npm i
7 changes: 5 additions & 2 deletions aws/scripts/application-start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
source /home/ubuntu/.profile
npm run start
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

npm run start

0 comments on commit 1e1c00a

Please sign in to comment.