Skip to content
Blitz Shell Deployer for Craft CMS
PHP
Branch: v1
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
CHANGELOG.md
LICENSE.md
README.md
composer.json

README.md

Blitz Shell Deployer for Craft CMS

The Shell Deployer allows the Blitz plugin for Craft CMS to deploy cached files to remote locations using shell commands.

WARNING: Commands are parsed by the shell of your OS. Use at your own risk.

License

This plugin is licensed for free under the attached License terms.

Requirements

Blitz 3.0.2 or later and PHP 7.1.3 or later.

Usage

Install the deployer using composer.

composer require putyourlightson/craft-blitz-shell

Then add the class to the driverTypes config setting in config/blitz.php.

// The deployer type classes to add to the plugin’s default deployer types.
'deployerTypes' => [
    'putyourlightson\blitzshell\ShellDeployer',
],

You can then select the deployer either in the control panel or in config/blitz.php. The shell commands to run must be defined as an array in the deployerSettings setting in config/blitz.php.

// The deployer type to use.
'deployerType' => 'putyourlightson\blitzshell\ShellDeployer',

// The deployer settings.
'deployerSettings' => [
   'commands' => [
        'cp -r ~/mysite.com/web/cache/blitz ~/remote'
    ],
],

Documentation

Read the documentation at putyourlightson.com/plugins/blitz.

Created by PutYourLightsOn.

You can’t perform that action at this time.