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"}