Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zaporylie/drush-maintenance-mode
https://github.com/zaporylie/drush-maintenance-mode
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zaporylie/drush-maintenance-mode
- Owner: zaporylie
- Created: 2020-11-28T10:04:06.000Z (about 4 years ago)
- Default Branch: 1.x
- Last Pushed: 2020-11-30T11:30:07.000Z (about 4 years ago)
- Last Synced: 2024-10-12T01:43:38.220Z (2 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Drush Maintenance Mode
====Restricts list of drush commands that are allowed to be run when the site is in maintenance mode.
# Installation
```bash
composer require zaporylie/drush-maintenance-mode
```# Configuration
Create a file `.drush-maintenance-mode.yml` in project's root directory (composer root). List all commands (by command
name) under `commands.allowed` property. Command names should be used as keys.Example:
```yaml
commands:
allowed:
// Preview site state.
'core:status':
// Clear cache.
'cache:clear':
// Take the site out of maintenance mode using drush.
'state:set':
// Update database.
'updatedb':
'updatedb:status':
// Export configuration split.
'config-split:export':
// Import configuration.
'config-split:import':
'config:import':
// Import translations.
'locale:update':
// Used internally by bunch of commands above.
'batch:process':
```