- Author: https://github.com/rdehnhardt/lumen-maintenance-mode
congnqnexlesoft
clone and update forLumen 6.x
andPHP 7.4
PHP 7.4
export PATH=/usr/local/Cellar/php@7.4/$(ls /usr/local/Cellar/php@7.4 | head -1)/bin:$PATH
php -v | grep "PHP 7.4"
composer require congnqnexlesoft/lumen-maintenance-mode
In bootstrap/app.php
, add this instruction in providers
$app->register(CongnqNexlesoft\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class);
- Using JSON response
- Except URIs
- Require config the line below to your
.env
file
## [BEGIN] congnqnexlesoft/laravel-maintenance-mode, lumen-maintenance-mode, symfony-maintenance-mode ##
MAINTENANCE_RESPONSE_FORMAT=json
# separate by ,(comma)
EXCEPT_URIS=URI_1,URI_2
## [END] congnqnexlesoft/laravel-maintenance-mode, lumen-maintenance-mode, symfony-maintenance-mode ##
- Copy these files to your project:
resources/views/errors/503.blade.php
storage/framework/.gitignore
php artisan down
php artisan up
In .env
file
ALLOWED_IPS=999.99.9.999,999.99.9.999,999.99.9.999
sh .ops/release-a-new-version.sh