← All guides

Auto-deploy guide

Set up auto-deploy on push for your AI-built app

VercelVPSNext.js

Short answer

Automatic deployment on every push to main with build logs, error notifications, and rollback capability.

Why this matters

Every deploy requires manual steps on the server. You want push-to-deploy like Vercel but on your own infrastructure.

Walkthrough

  1. 01

    Choose a deploy trigger

    Decide how the server will know when to deploy.

    • Use a GitHub webhook to trigger deploys on push.
    • Use your deploy panel built-in git integration.
    • Or use a polling-based approach if webhooks are not available.
  2. 02

    Configure the deploy pipeline

    Set up the steps the server takes when a new commit arrives.

    • Pull the latest code from the main branch.
    • Install dependencies and run the production build.
    • Restart the app process with zero downtime if possible.
  3. 03

    Add notifications and rollback

    Know when deploys succeed or fail, and be able to roll back.

    • Send deploy notifications to email, Slack, or Discord.
    • Keep the last 3 builds available for instant rollback.
    • Test the rollback path before relying on it.

Where RepoAssistant fits

RepoAssistant sets up auto-deploy on push with notifications and rollback during production deployment.