Skip to content

First Deployment

  1. Log into the VPS Deployer web UI
  2. Navigate to ProjectsCreate
  3. Fill in the form:
FieldDescription
NameA friendly name for your project
GitHub URLYour repository URL (HTTPS or SSH)
BranchThe branch to deploy from (e.g., main)
Auto DeployEnable to deploy automatically on push
Email NotificationsEnable to receive deployment alerts
  1. Click Create

After creation, you’ll see the project details page with your unique webhook URL and secret.

On the project details page, add your deployment commands in order. For example:

1. git pull origin main
2. npm install
3. npm run build
4. pm2 restart app
  1. Copy the webhook URL and webhook secret from the project details page
  2. Go to your GitHub repo: Settings → Webhooks → Add webhook
  3. Configure:
SettingValue
Payload URLYour webhook URL (e.g., http://your-vps:3000/webhook/<project-id>)
Content typeapplication/json
SecretThe webhook secret from VPS Deployer
EventsJust the push event
  1. Click Add webhook

Push to your configured branch:

Terminal window
git push origin main

VPS Deployer will receive the webhook, verify the signature, and start deploying.

Click the Deploy button on the project details page in the web UI. This triggers a deployment immediately without waiting for a webhook.

Navigate to Deployments to see:

  • Deployment status (running, success, failed)
  • Duration
  • Real-time log output
  • Command-by-command results
IssueSolution
Webhook not firingCheck GitHub webhook delivery logs for errors
Deployment stuckCheck journalctl --user -u vps-deployer -f for server logs
Command failsReview deployment logs — each command’s output is captured
Permission deniedSee Privileged Commands for sudoers setup