Automate MERN App Deployment on VPS with n8n 🚀 Auto Update After Git Push

Automate MERN App Deployment on VPS with n8n 🚀 Auto Update After Git Push

T
Thapa Technical
1 Video View·Aug 28, 2025

Tired of typing the same commands on your VPS after every update? In this video, I’ll show you how to fully automate your MERN app deployment using n8n, GitHub, and SSH.
Just push your code → n8n will git pull, build frontend/backend, and restart with PM2 automatically!
No more manual steps – save time and focus on coding.

📌 Grab India’s Best Hosting Now: https://www.hostg.xyz/SHGZy
🎉 Thapa Family Special Offer:
🔹 Use THAPA7 for 10% OFF - 1yr plan
🔹 Use THAPA15 for 15% OFF - 2yr Plan

🤖 Wanna automate deployments? Step-by-step here 👉: https://www.thapatechnical.com/2025/08/automate-website-deployment-on-vps-with.html

------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:

👉 Watch Complete VPS Setup: https://youtu.be/rm8AhGGYEVA
➡️ Watch n8n Installation p-1: https://youtu.be/Y6X-MDz2ZpA

🌐 Link to VPS Security Setup Before Hosting: https://www.thapatechnical.com/2025/01/vps-security-settings-ssh-firewall.html
------------------------------------------------------------------------
✌️ Join Us!

🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join
📷 Connect on Instagram: https://www.instagram.com/thapatechnical
🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6

------------------------------------------------------------------------

⌛TIMELINE⏳
0:00 Intro – Auto update website after git push with n8n in VPS
0:20 Live demo – Git push to live website update in seconds
1:45 Prerequisites to automate GitHub push to VPS
4:21 Buying a VPS for deployment (Hostinger, DigitalOcean, AWS, etc.)
5:30 Explaining n8n workflow automation
7:50 Adding GitHub Trigger Node in n8n
9:10 Connecting GitHub repo with n8n
12:05 Hiding secret keys securely in n8n
13:45 Adding SSH Execute Command Node
15:10 Important step before VPS deployment automation
16:30 Setting up passwordless SSH login with keys
19:40 Copying private key from system to n8n
20:10 Adding deployment commands (git pull, build, pm2 restart)
23:10 Testing Git push → Auto Deploy workflow
25:10 Must-watch videos for advanced automation