Runbook: Restart an Application
When to Use
- Application is unresponsive or returning errors
- After a configuration change in
deploy/.env - After manual database changes that require the app to reconnect
Steps
1. SSH into the server
2. Navigate to the app directory
3. Restart the app container
To restart all containers for the app (including workers if present):
4. Verify the container is running
All services should show Up status.
5. Check the health endpoint
Expected response: {"status": "healthy"} with HTTP 200.
6. Check container logs if unhealthy
Full Rebuild
If a restart doesn't resolve the issue, rebuild the container:
Notes
- Restarting an app causes brief downtime (typically a few seconds). Caddy returns 502 during this window.
- Restarting does not affect other applications on the server.
- Platform services (PostgreSQL, Redis, etc.) are managed separately in
/opt/platform/.