infra: debug - use NPM binary in npm install command
Some checks failed
Deploy eolas-api / deploy (push) Failing after 30s
Some checks failed
Deploy eolas-api / deploy (push) Failing after 30s
This commit is contained in:
parent
7037b8b501
commit
b7ac09d51b
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ jobs:
|
|||
rsync -avz --delete --inplace --exclude='.env' -e "ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no" ./ ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/
|
||||
|
||||
echo "⚡ INFO Run npm install on VPS"
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} "bash -l -c 'cd /var/www/eolas-api && npm install --omit=dev'"
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} "bash -l -c 'cd /var/www/eolas-api && /home/deploy/.nvm/versions/node/v24.10.0/bin/npm install --omit=dev'"
|
||||
|
||||
echo "⚡ INFO Restarting service"
|
||||
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} "bash -l -c 'sudo /usr/bin/systemctl daemon-reload && sudo /usr/bin/systemctl start eolas-api.service'"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue