PHP code example of wearejh / m2-deploy-recipe

1. Go to this page and download the library: Download wearejh/m2-deploy-recipe 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/ */

    

wearejh / m2-deploy-recipe example snippets




namespace Deployer;

  ->port(22)
    ->stage('dev')
    ->user('www-data')
    ->set('branch', 'develop')
    ->set('keep_releases', 1)
    ->set('deploy_path', '/some/deploy/path')

set('lighthouse', (
    (new LighthouseConfig())->setTargetUrl('https://test-url.com')
    ->setBasicAuthToken('amg6Y3IfsasagsaagsaDEwbjUtdzByazgwNHQ=') // optional, if your site is protected
    ->setSlackAuthToken('xoxb-XXXXXXX-XXXXXXXXX-XXXXXXXXXXXXXX') // Slack bot token
    ->setSlackChannels('XXXXXXX') //Slack channels you want the message sent to, comma-separated
    ->setProjectSlug('project-name')