Maintenance Mode
Maintenance mode takes an environment offline and displays a maintenance page to visitors. SKE implements maintenance mode through redeployment, not php artisan down.
Why not artisan down?
Section titled “Why not artisan down?”On traditional servers, artisan down writes a file to the filesystem that Laravel checks on each request. On serverless infrastructure, the filesystem is ephemeral — each function invocation or container instance starts fresh. A maintenance file written in one instance doesn’t exist in others, and it disappears when the instance is recycled.
SKE solves this by redeploying the environment with MAINTENANCE_MODE=true, so every instance sees the same state. The SKE Laravel bridge reads it as Laravel’s maintenance mode, and Laravel answers requests with the application’s own 503 page, exactly as after artisan down.
Enabling maintenance mode
Section titled “Enabling maintenance mode”In the dashboard, open the environment, open its More actions menu and select Enable maintenance, then confirm. The CLI has no maintenance command.
This triggers a redeployment that activates the maintenance flag. Requests receive Laravel’s 503 Service Unavailable maintenance page.
Disabling maintenance mode
Section titled “Disabling maintenance mode”Select Disable maintenance in the same menu. This triggers another redeployment that removes the maintenance flag. Traffic resumes normally.
Behavior during maintenance
Section titled “Behavior during maintenance”- HTTP requests get Laravel’s
503 Service Unavailablepage - Queued jobs keep running: queue workers are not paused
- The scheduler skips tasks not marked
evenInMaintenanceMode() - A
MAINTENANCE_MODE_SECRETsecret works likeartisan down --secret: visiting/{secret}lets you in, with Laravel’s bypass cookie - The environment remains provisioned — no infrastructure is torn down
- The deployment history shows entries of type
maintenance
Checking status
Section titled “Checking status”The environment’s page shows a Maintenance badge while it is in maintenance mode. The maintenance redeployment is listed with the others:
ske status --env productionLatest deployment: 7246190025113518094Type: maintenanceStatus: succeeded