Environment
1
Set production environment variables
In Generate a fresh
.env (or your platform’s environment variable configuration):APP_KEY for production — don’t reuse a development key:2
Point at a production-grade database
SQLite is fine for local development, but for production, switch to MySQL or PostgreSQL — see Configuration for the variables to set.
3
Configure mail if you plan to add it
Orbit’s notifications are in-app only today (see Notifications), so
MAIL_MAILER doesn’t need to be configured for any current feature to work. Leave it as-is unless you’re extending Orbit yourself.Build and deploy
1
Install dependencies without dev tooling
2
Run migrations
3
Cache framework configuration
4
Serve the app
Point Nginx or Apache with PHP-FPM at the
public/ directory, or run the app’s Docker image directly — see Docker for the container setup, which is suitable for production as well as local development.Running the queue
Session, cache, and queue all default to thedatabase driver. If you rely on queued jobs, run a queue worker under a process supervisor (such as supervisord or systemd) rather than the queue:listen command used in local development, so it restarts automatically:
