2017 © Pedro Peláez
 

craft-plugin craft-maintenancemode

Programmatically disable the website through command line

image

venveo/craft-maintenancemode

Programmatically disable the website through command line

  • Tuesday, December 12, 2017
  • by ransom
  • Repository
  • 1 Watchers
  • 6 Stars
  • 301 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 151 % Grown

The README.md

Maintenance Mode plugin for Craft CMS 3.x

Programmatically disable the website through command line. Use this for your automated build processes to disable the website during build!, (*1)

Installation

Maintenance mode can be enabled through composer: composer require venveo/craft-maintenancemode, (*2)

Usage

To enable maintenance mode: ./craft maintenancemode/maintenance-mode/enable, (*3)

To disable maintenance mode: ./craft maintenancemode/maintenance-mode/disable, (*4)

Example Scenario

Using Laravel Forge to deploy your Craft app, you might want to disable the website during the frontend build process:, (*5)

cd /home/forge/mysite.com

php craft maintenance-mode/maintenance-mode/enable

git pull origin master --recurse-submodules

git submodule init
git submodule update --remote --recursive

composer install --no-interaction --prefer-dist --optimize-autoloader
echo "" | sudo -S service php7.0-fpm reload

if [ -f artisan ]
then
    php artisan migrate --force
fi

yarn install
npm run production

php craft maintenance-mode/maintenance-mode/disable

Brought to you by Venveo, (*6)

The Versions

12/12 2017

dev-master

9999999-dev

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

maintenance cms craftcms craft-plugin craft

12/12 2017

1.0.3

1.0.3.0

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

maintenance cms craftcms craft-plugin craft

08/12 2017

1.0.2

1.0.2.0

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

maintenance cms craftcms craft-plugin craft

08/07 2017

1.0.1

1.0.1.0

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft maintenance mode

08/07 2017

dev-develop

dev-develop

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft maintenance mode

21/04 2017

1.0.0

1.0.0.0

Programmatically disable the website through command line

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft maintenance mode