PHP code example of sourcebroker / deployer-typo3-deploy-ci

1. Go to this page and download the library: Download sourcebroker/deployer-typo3-deploy-ci 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/ */

    

sourcebroker / deployer-typo3-deploy-ci example snippets


   
   
   namespace Deployer;
   
   ader([
     ['get' => 'sourcebroker/deployer-typo3-deploy-ci'],
   ]);

   task('deploy:writable')->disable(); // Disable deploy:writable task if httpd user is the same as ssh user.

   host('prod')
       ->setHostname('vm-dev.example.com')
       ->setRemoteUser('project1')
       ->set('bin/php', '/usr/bin/php8.4')
       ->set('public_urls', ['https://t3base13.example.com'])
       ->set('deploy_path', '~/t3base13.example.com/prod');
   
   host('preprod')
       ->setHostname('vm-dev.example.com')
       ->setRemoteUser('project1')
       ->set('bin/php', '/usr/bin/php8.4')
       ->set('public_urls', ['https://preprod-t3base13.example.com'])
       ->set('deploy_path', '~/t3base13.example.com/preprod');
   
   host('staging')
       ->setHostname('vm-dev.example.com')
       ->setRemoteUser('project1')
       ->set('bin/php', '/usr/bin/php8.4')
       ->set('public_urls', ['https://staging-t3base13.example.com'])
       ->set('deploy_path', '~/t3base13.example.com/staging');