Skip to content
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

Review asked for the 503 in Maintenance mode #11

Open
axyr opened this issue Apr 18, 2016 · 1 comment
Open

Review asked for the 503 in Maintenance mode #11

axyr opened this issue Apr 18, 2016 · 1 comment

Comments

@axyr
Copy link
Owner

axyr commented Apr 18, 2016

Right now the 503 is thrown in a ControllerExtension::onBeforeInit();

https://github.com/axyr/silverstripe-console/blob/master/code/Extensions/MaintenanceModeExtension.php

This will probably not work if there is a database or missing file error during deployment.

Should I rewrite the .htaccess so all requests wont even hit the application when in Maintenance mode?

@robbieaverill
Copy link

Should I rewrite the .htaccess so all requests wont even hit the application when in Maintenance mode?

Yes, absolutely! This way the application can be as unstable as required and always serve a static message on the front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants