infra: debug - use NPM binary in npm install command
Some checks failed
Deploy eolas-api / deploy (push) Failing after 30s

This commit is contained in:
Thomas Bishop 2025-10-16 14:57:08 +01:00
parent 7037b8b501
commit b7ac09d51b

View file

@ -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'"