Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdlp/oc-maintenance-plugin
Handles HTTP requests when October CMS is in maintenance mode.
https://github.com/vdlp/oc-maintenance-plugin
503 maintenance maintenance-mode october-cms octobercms octobercms-plugin php
Last synced: about 4 hours ago
JSON representation
Handles HTTP requests when October CMS is in maintenance mode.
- Host: GitHub
- URL: https://github.com/vdlp/oc-maintenance-plugin
- Owner: vdlp
- License: gpl-2.0
- Created: 2020-02-21T12:39:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T13:49:02.000Z (8 months ago)
- Last Synced: 2024-03-15T13:53:42.012Z (8 months ago)
- Topics: 503, maintenance, maintenance-mode, october-cms, octobercms, octobercms-plugin, php
- Language: PHP
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 9
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Vdlp.Maintenance
Handles HTTP requests when October CMS is in maintenance mode.
To bring October CMS down:
```
php artisan down
```To bring October CMS up:
```
php artisan up
```## Installation
```
composer require vdlp/oc-maintenance-plugin
```## Configuration
To configure this plugin execute the following command:
```
php artisan vendor:publish --provider="Vdlp\Maintenance\Providers\MaintenanceServiceProvider" --tag="config"
```## Customization
This plugin is shipped with a default maintenance page.
If you would like to customize this page you can create a folder called `maintenance` in the root of your project. Inside this directory you should create a file called `503.htm`. This file is rendered using the default view engine of your project and receives two variables: `app_name` and `locale`, where `app_name` is the value of the `app.name` configuration variable and `locale` is the active locale name.