Skip to content

Commit

Permalink
Attempt to fix nvm not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
ttbowen committed Sep 24, 2023
1 parent 8727176 commit bad5a85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ jobs:
key: ${{ secrets.PRODUCTION_KEY }}
passphrase: ${{ secrets.PRODUCTION_PASSPHRASE }}
script: |
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/pm2" "/usr/local/bin/pm2"
cd /var/www/mrwhale.io/mrwhale
git pull origin master
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/pm2" "/usr/local/bin/pm2"
yarn install && yarn run build
pm2 reload all

0 comments on commit bad5a85

Please sign in to comment.