-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Feature Idea: Maintenance On/Off via craft cli #14
Comments
@sergeifilippov I'm currently working on this and came across a bit of a dilemma. Because Patrol supports turning maintenance mode on/off via the CP (stored in db) or the config file ( File configs take precedence over CP settings. I suppose Another option might be to write to the .env file but is not as cross-platform. Finally, if this change was for deployments only, we could create a simple text file on enable and delete it on disable. Lot's of ideas, just need to clear my thoughts and figure out what I'm not thinking of. There may be a much simpler solution here. I'd love your thoughts on this? |
Hmm to make things even more interesting there is a 3rd possible option. Get the module to check for an existence of a .maintenance file in the project root. If it exists, site is in maintenance. Then the cli command is just checking/adding/removing an empty file vs hitting a database on each request. Just an idea. |
@sergeifilippov I like the idea of the |
I think @sergeifilippov is spot on when it comes to this feature. That is how the |
@sergeifilippov Bump 👍 |
Good thinking with the |
I use automated deployments that run tasks via cli before deploying an atomic release of a given craft build.
Would be great if you can put the site into maintenance via cli. Like this:
Thank you for making this plugin. 👍🏻
The text was updated successfully, but these errors were encountered: