# Production Deployment

Use this checklist before putting BizQuote Pro online at `https://getbizquote.com`.

## Required environment values

Set these in your live `.env`:

- `APP_ENV=production`
- `APP_DEBUG=false`
- `APP_URL=https://getbizquote.com`
- `APP_KEY=base64:...` generated fresh for production
- `DB_USERNAME` and `DB_PASSWORD` for a dedicated production database user
- `MAIL_*` values for your SMTP provider
- `DPO_REDIRECT_URL=https://getbizquote.com/payments/dpo/return`
- Social redirect URLs under `https://getbizquote.com/social/...`

## Deployment steps

1. Copy [.env.production.example](../.env.production.example) to `.env` on the server.
2. Replace every secret placeholder with the production value.
3. Import the schema from [database/schema.sql](../database/schema.sql).
4. Create the first admin account with `php scripts/create-admin.php`.
5. Make sure `storage/` is writable by the web server.
6. Ensure the web server document root points to `public/`.
7. Confirm `https://getbizquote.com` is served over HTTPS.
8. Verify outbound mail and payment redirects in a staging or test mode first.

## Validation

After deployment, confirm:

- The homepage loads.
- Login works.
- Quotation creation, conversion, and invoice sending work.
- Public quotation and invoice links open over HTTPS.
- Payment reminders and proof upload work.
- DPO and social-provider callbacks return to `getbizquote.com`.

## Notes

The app refuses to boot in production if debug mode is enabled, the app key is missing, or `APP_URL` still points to localhost.
