-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Possibility to disable/ignore contao:maintenance-mode enable
#808
Comments
Btw. in this situation the safe mode is not offered. The safe mode would help as |
I think the maintenance task just needs to be accepted to fail, right? |
Not sure, depends on what the user wants I think. There might be other situations where you do not want the |
An |
@fritzmg Having safe-mode on wouldn't solve the issue in this case :/ - I was on 3.10.0 when testing it, hence why it bypassed it. @aschempp It would help if we would completely skip enabling the maintenance-mode whilst installing within safe-mode since it's usally something when stuff is already broken (or if I add it as an extra option, an expert-setting). Wdyt? |
I don't like that option. It would mean that a user has to know internals to know how to fix the system. The Contao Manager should either skip the maintenance mode if it breaks, or possibly allow the task to continue otherwise. Enabling the safe mode manually makes little sense to me. |
You basically mean a rerun when an error occured that doesn't enable the maintenance mode at all, right? |
But again, that's may be not something you want. If an error occurs, you might not want to continue at all. |
So what would you propose @fritzmg ? |
Ideally the Contao Manager would ask the user to confirm to continue without enabling maintenance mode - but putting another UI layer like that in is presumably hard 🙈. |
I think we need to have tasks that are allowed to fail and the user can then choose whether to continue or not. I have some ideas how to implement that 😊 |
The recent Twig BC breaks showed that you can inadvertently maneuver Contao into a broken state of which you cannot get out of via the Contao Manager alone. The update to
twig/twig
3.10.1
breaks thecontao:maintenance-mode enable
command. To fix these BC issues a downgrade totwig/twig
3.9.x
is necessary (appropriate conflicts were added tocontao/conflicts
for this). However, this is impossible to do via the Contao Manager, as it always wants to executecontao:maintenance-mode enable
first - which fails. And thus the subsequentcomposer update
- which would execute the downgrade to fix the issue - is never executed.There needs to be a way to run a
composer update
directly (i.e. without prior execution ofcontao:maintenance-mode enable
).The text was updated successfully, but these errors were encountered: