[ckan-dev] Maintenance mode

David Read david.read at hackneyworkshop.com
Thu Apr 7 14:00:12 UTC 2016


Florian,

I believe that refers to a bit of middleware:
https://pypi.python.org/pypi/apachemiddleware/0.1.1
The source repo is long gone, but you could install it and read the
source - it's very short. I think it just returns friendly 503 error
if you try to do a POST request, which will ensure that no writes
occur, because the edit forms being submitted and writes to the API.
However you will still need to add a banner, or pop-up message when
someone tries to log-in, explaining what's going on. This would be far
better than the whole site being down.

I think this would be a great contribution to ckan core, but I'd want
to confer - it might be solved better on other sites. I'd like to know
what Django, Drupal etc do about this - no doubt there is something we
can learn.

David

On 1 April 2016 at 08:19,  <Florian.Brucker at mb.karlsruhe.de> wrote:
> Hello,
>
> I'm looking for a way to put my live CKAN installation into read-only
> maintenance mode so that users can continue the site but cannot make any
> changes. This would allow me to safely upgrade CKAN in the background
> without risking content inconsistencies.
>
> It seems that such a feature was added in 1.3 [0], but I couldn't find any
> information about it in the current documentation. Is this feature still
> available?
>
>
> Regards,
> Florian
>
> [0] http://ckan.org/2011/02/18/ckan-v1-3-released/
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list