-
-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[console] Add option for maintenance mode in certain commands #3313
Comments
@littlethoughts can you elaborate more on this feature request? |
PR for DC: #3811 I have create a new maintenance listener, which checks maintenance property on the command and enable/ disable maintenance mode. |
Cool, how could I test it? I have a custom command where it would be useful, which is assembling config files. I could also achieve this functionality by writing a chain command I think. If that is much simpler than integrating your solution maybe that's enough. From the top of my head, these would also be candidates, because they could be run in a production environment and take some time / need to preserve a state:
|
@littlethoughts I have not tested this auto-maintenance-mode feature. But what we commonly used chain commands is kinda like this. Add a new chain file at
Then use it as:
|
In the configure method you need to call https://github.com/hechoendrupal/drupal-console/pull/3811/files |
@LOBsTerr I think as command configuration is great. When you mentioned as |
@jmolivas I meant global. It can be useful for developers of custom commands |
I'm closing the issue, feel free to reopen it if you have any other ideas |
Problem/Motivation
It would be nice to have an option whether the site should be put into maintenance mode, like --maintenance-mode for example.
More control over the command and a faster execution should be the outcome
The text was updated successfully, but these errors were encountered: