1. Go to this page and download the library: Download mjaschen/deployer-tasks 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/ */
mjaschen / deployer-tasks example snippets
namespace Deployer;
p';
set('supervisord_service_names', ['acme_worker']);
// (optional) when supervisor command is not in $PATH:
set('supervisorctl_command', '/opt/supervisor/supervisorctl');
before('deploy:prepare', 'supervisord-service:stop')
after('deploy:symlink', 'supervisord-service:start')
after('supervisord-service:start', function() {
sleep(1);
});
after('supervisord-service:start', 'supervisord-service:status');