putyourlightson/craft-blitz-shell

Shell deployer for the Blitz plugin for Craft CMS.

Package info

github.com/putyourlightson/craft-blitz-shell

Documentation

Type:blitz-deployer

pkg:composer/putyourlightson/craft-blitz-shell

Statistics

Installs: 1 890

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

3.0.0 2024-04-08 14:06 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

proprietary 57825235c112892328510017155812948faf038c

cacheshelldeployercraftcmsblitz

This package is auto-updated.

Last update: 2026-06-15 14:07:20 UTC


README

πŸ‘ Stable Version
πŸ‘ Total Downloads

πŸ‘ Image

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.

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 and add shell commands to execute either in the control panel or in config/blitz.php. The shell commands cal also be defined as an array of arrays 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'],
 ['cp -r ~/mysite.com/web/cache/blitz ~/remote'],
 ['cp -r ~/mysite.com/web/cache/blitz ~/remote'],
 ],
],

Documentation

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

Created by PutYourLightsOn.