LESSON OBJECTIVE
What you will be able to do
Prepare production configuration, observability, backups, and recovery rather than checking only a happy path.
Disable debug information
APP_DEBUG=false and generic public errors prevent internal paths and stack traces from becoming responses. Keep full context in protected logs.
APP_DEBUG=false aml doctor --production --json
composer audit
aml routesCheck security and observability
Run doctor --production, dependency audit, route review, permission checks, backups, and a health endpoint. Attach request IDs to logs.
Practice recovery
Restore a backup, roll back one release, rotate one secret, and restart one process before an incident forces you to learn.
CHECKPOINT
Before you continue
Has the team actually restored a backup and rolled back a release, or merely documented the commands?