# Operations and deployment

Configure one MySQL/MariaDB database with ordinary `DB_*` variables. Set central domains, the platform domain, and the store session cookie through `TENANCY_CENTRAL_DOMAINS`, `TENANCY_PLATFORM_DOMAIN`, and `TENANCY_STORE_SESSION_COOKIE`.

For a fresh deployment:

```bash
php artisan optimize:clear
php artisan migrate --force --no-interaction
php artisan db:seed --force --no-interaction
php artisan queue:restart
```

Do not run `migrate:fresh` against an existing environment. The unified migration stream creates platform and store tables together. Tenant provisioning only seeds rows for the selected tenant.

Use a taggable production cache such as Redis. Queued tenant work must carry a tenant ID and initialize context. Back up the single database as one consistent unit and test restoration regularly.
