Skip to content

Viewing Logs

Every deployment generates detailed logs that capture the output of each command as it runs.

  • Deployment details page: Click on any deployment in the Deployments list
  • Real-time output: The details page polls for new log entries every 3 seconds

Each command in a deployment gets its own log entry:

FieldDescription
CommandThe shell command that was executed
OutputCombined stdout and stderr
StatusSuccess (exit 0) or failed (non-zero exit)
Started atWhen the command began
Finished atWhen the command completed

On the deployment details page:

  1. The page automatically polls /deploy/:id every 3 seconds
  2. New log entries appear as they’re generated
  3. Completed deployments show the final status badge

For application-level logs (not deployment-specific), check:

Terminal window
# Application log file
tail -f /opt/vps-deployer/vps-deployer.log
# Systemd journal
journalctl --user -u vps-deployer -f

These capture:

  • Server startup/shutdown events
  • Webhook verification results
  • Email sending status
  • Errors and warnings

Deployment logs are stored in the SQLite database and persist until manually cleaned. There is no automatic log rotation or deletion.

[INFO] Deploy #abc123 started
[INFO] Command 1: git pull origin main
Already up to date.
[INFO] Command 2: npm install
added 42 packages in 3s
[INFO] Command 3: pm2 restart app
[PM2] Applying action restartProcessId on app [app]
[INFO] Deploy #abc123 completed successfully
[INFO] Deploy #def456 started
[INFO] Command 1: git pull origin main
Already up to date.
[INFO] Command 2: npm run build
Error: Cannot find module './config'
[ERROR] Deploy #def456 failed at command 2