starring-jane / deployer-recipes
A composer package with deployer recipes
Installs: 3 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- deployer/deployer: ^6|^7|v8.0.0-alpha
README
Install
composer require starring-jane/deployer-recipes
Archive recipe
// deploy.php <?php namespace Deployer; // Add the recipe require __DIR__ . '/vendor/starring-jane/deployer-recipes/archive.php'; // Keep at least 2 releases to be able to archive the previous release set('keep_releases', 2); // Archive the previous release after the symlink update after('deploy:symlink', 'archive:archive'); // Put the archived release back to rollback before('rollback', 'archive:unarchive'); // Any other configuration you already had ...
Diskspace recipe
This recipe checks if there is enough disk space available to create a release. It checks the sizes of previous releases to calculate the required space. If insufficient disk space is available it will throw an error and stop the deploy
// deploy.php <?php namespace Deployer; // Add the recipe require __DIR__ . '/vendor/starring-jane/deployer-recipes/diskspace.php'; // Add the 'diskspace:check' task at the beginning of your deploy tasks task('deploy', [ 'deploy:info', 'deploy:setup', 'diskspace:check', // NEW TASK 'deploy:lock', 'deploy:release', ... ]); // Any other configuration you already had ...
Contributors
- Maxim Vanhove (maxim@starringjane.com)