Run npm install on server after deployment
All checks were successful
Build Frontend / Build Frontend (push) Successful in 8s

This commit is contained in:
2026-01-11 00:53:44 +00:00
parent c35a36b85a
commit bca13736d8

View File

@@ -62,6 +62,16 @@ jobs:
-e "ssh -i $SSH_KEY -o StrictHostKeyChecking=no -p $SERVER_PORT" \
./frontend/dist/ ${SERVER_USER}@${SERVER_HOST}:/var/www/html/turbotrades/
# Install dependencies on server
echo "📦 Installing dependencies on server..."
ssh -i $SSH_KEY -o StrictHostKeyChecking=no -p $SERVER_PORT ${SERVER_USER}@${SERVER_HOST} << 'EOF'
cd /root/ttbackend
npm install --production
chown -R www-data:www-data /var/www/html/turbotrades
chmod -R 755 /var/www/html/turbotrades
echo "✅ Dependencies installed!"
EOF
echo "✅ Deployment complete!"
echo "🌐 Frontend: https://turbotrades.dev"
echo "🔧 Backend: https://api.turbotrades.dev"