Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.15 KB

PLUGINS.md

File metadata and controls

65 lines (40 loc) · 1.15 KB

Deployer Extension :: PLUGINS

MaintenanceListener

This is prepared listener that help make maintenance mode easier.

Plugin has two sections rewrite and rename.

You have to register to before and to after also (!).

Rewrite

Before: backup origin file, rename destination file to source file

After: revert rewriting

deployer:
    plugins:
    
        maintenance:
            rewrite:
                - [www/index.php, www/index.maintenance]

Rename

Before: rename origin file to destination file

After: revert renaming

deployer:
    plugins:
    
        maintenance:
            rename:
                - [www/.maintenance.php, www/maintenance.php]

You can combine rewriting and renaming together.

ComposerInstallListener

This is prepared listener that runs command:

composer install --no-dev --prefer-dist --optimize-autoloader -d $DIR

Parameters

  • $DIR is section.local

ComposerUpdateListener

This is prepared listener that runs command:

composer update --no-dev --prefer-dist --optimize-autoloader -d $DIR

Parameters

  • $DIR is section.local