Skip to content

Commit

Permalink
chore: try setting source in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Mar 21, 2024
1 parent ca710d7 commit e284c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions aws/scripts/after-install.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions aws/scripts/application-start.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e284c2d

Please sign in to comment.