Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Down for maintence page in CMS


Go to End


13 Posts   5180 Views

Avatar
Mo

Community Member, 541 Posts

11 June 2009 at 12:20am

Thats an idea, you can create a 503 error page in the CMS, its in the dropdown list.

You wouldn't be able to put th custom PHP in the generated doc, but I think you could put something like:

Redirect 503 /e/503 "assets/error-503.html"

I will give that a try and post back. (Knowing my luck, it wont work :) )

Mo

Avatar
Radon

Community Member, 11 Posts

11 June 2009 at 12:50am

Yes, but the problem is if you want to make major updates to your SilverStripe installation you probably don't want it to handle the 503 error page. That's why I prefer to have it outside of the CMS.

Avatar
Mo

Community Member, 541 Posts

11 June 2009 at 12:52am

But silverstripe creates a non templated html page in the assets folder. This is not managed by the cms, so you can redirect your webserver to that page and it will bypass silverstripe.

Mo

Avatar
Radon

Community Member, 11 Posts

11 June 2009 at 1:10am

True, good catch. Just verify the HTTP Code.

Avatar
geekdenz

Community Member, 37 Posts

6 August 2014 at 3:33pm

Hi, I need our site to be in a read-only state for when it is in maintenance. The tactic would be as follows:

  • Put the site in read only mode.
  • Populate a different folder with the new code.
  • Upgrade the database and mv the folders so that the new code and DB get live

This is fairly atomic, but not totally, because it will take at least a few seconds to do the last step. So, we need our site to be at least in read-only mode for that time and let users know gracefully. There is a thread started here: https://groups.google.com/forum/#!msg/silverstripe-dev/GD_vcU1SaRI/OU3vNwV0-3YJ
But it seems like it hasn't been followed up on. It seems like a fairly generic problem.

Is there a solution for this already?

Go to Top