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.

General Questions

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

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

Down for maintence page in CMS


Reply

13 Posts   2761 Views

Avatar
Mo

11 June 2009 at 12:20am Community Member, 509 Posts

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

11 June 2009 at 12:50am Community Member, 11 Posts

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

11 June 2009 at 12:52am Community Member, 509 Posts

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

11 June 2009 at 1:10am Community Member, 11 Posts

True, good catch. Just verify the HTTP Code.

Avatar
geekdenz

6 August 2014 at 3:33pm Community Member, 34 Posts

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?