Skip to main content

Two Deployment Models

Next.js App Deploy (Standard)

Full Rebuild (Clear Cache)

Use this when you see stale UI or build artifacts:

All Apps Build Reference

Static Site Deploy (presschain.io)

Always use \cp (backslash prefix) - the cp alias on cPanel servers is interactive and will stall automated deploys.

Rollback Procedure

Deploy Checklist

Pre-deploy:
  • Bridge health: curl https://bridge.presschain.io/health
  • No active court cases with imminent deadlines
  • Backup taken
Deploy:
  • Build succeeds with no errors
  • Use \cp not cp for static
  • Fix ownership if root was used
  • Restart service / Apache
Post-deploy:
  • HTTP 200 from production URL
  • Key feature spot-check (login, capsule list)
  • No errors in logs for 2 minutes

Apache VHost Pattern

Each subdomain needs a proxy config at:
After adding or editing proxy configs: