Operations

Production deployment

Prepare environment, migrations, process supervision, and health checks for production.

Beta · v0.2.0Lanjit APIs may change before the stable release. Review the release notes and upgrade guide before updating.

Install locked dependencies, generate the application key, run migrations and tests, then start the process with npm start. Put a TLS reverse proxy in front of Node.js and supervise the process with systemd, a container platform, or another process manager.

Beta limitations

Sessions, cache, rate limiting, and queues are process-local. Multi-instance deployments require persistent replacements for state that must be shared.

Examples

npm ci
node artisan key:generate
node artisan migrate
npm test
APP_ENV=production
APP_DEBUG=false
HOST=127.0.0.1
PORT=3333
SESSION_SECURE_COOKIE=true
LOG_LEVEL=info
npm start
{"status":"ok"}
Edit this page on GitHub

Type to search all documentation.