PHP code example of starring-jane / deployer-recipes
1. Go to this page and download the library: Download starring-jane/deployer-recipes library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
starring-jane / deployer-recipes example snippets
// deploy.php
namespace Deployer;
// Add the recipe
ious 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
...
// deploy.php
namespace Deployer;
// Add the recipe
deploy tasks
task('deploy', [
'deploy:info',
'deploy:setup',
'diskspace:check', // NEW TASK
'deploy:lock',
'deploy:release',
...
]);
// Any other configuration you already had
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.