Run npm install on server after deployment
All checks were successful
Build Frontend / Build Frontend (push) Successful in 8s
All checks were successful
Build Frontend / Build Frontend (push) Successful in 8s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user