2017 © Pedro Peláez
 

silverstripe-module db-read-only-mode

Places a SilverStripe website in read-only mode, blocking all write requests.

image

fspringveldt/db-read-only-mode

Places a SilverStripe website in read-only mode, blocking all write requests.

  • Sunday, September 4, 2016
  • by fspringveldt
  • Repository
  • 2 Watchers
  • 2 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DB Read Only Mode

This module places your entire SilverStripe site into read only mode to safely reduce downtime during deployments. When activated all DML and DQL queries which changes the data are blocked from executing, allowing user to continue using your site in a view-only mode., (*1)

Minimum requirements

silverstripe/framework: ^3.4.* 
silverstripe/cms: ^3.4.*

Installation and Setup

To install, run below from root of SilverStripe installation:, (*2)

> composer require fspringveldt/db-read-only-mode

http://your-site-url?flush=1 once composer is complete the flush the manifest., (*3)

Switching it on and off

Readonly mode is activated by default. To switch it on, find below in _ config/app.yml, (*4)

ReadOnlyAspect:
  properties:
    activate: 1

and change the 1 to 0. Then flush again to clear the cache manifest, activating the module., (*5)

Switching off exceptions

If you'd like to throw a catchable exception, then switch it on in _ config/app.yml, (*6)

ReadOnlyAspect:
  properties:
    throwExceptions: 0

by changing the 0 to 1. Flush the manifest afterwards., (*7)

The Versions

04/09 2016

dev-master

9999999-dev https://github.com/fspringveldt/db-read-only-mode

Places a SilverStripe website in read-only mode, blocking all write requests.

  Sources   Download

The Requires

 

by Franco Springveldt

silverstripe db-read-only-mode