PHP code example of hypernode / deploy-configuration

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

    

hypernode / deploy-configuration example snippets

 php
$configuration->addBuildTask('deploy:vendors');
 php
$stage->addServer('appname.hypernode.io', [], [], ['LogLevel' => 'verbose']);
 php
use function Deployer\{run, task};

...

task('magento:cache:flush', static function () {
    run('{{bin/php}} {{release_or_current_path}}/bin/magento cache:flush');
});

$configuration->addDeployTask('magento:cache:flush');
 php
$configuration->addPlatformConfiguration(
    (new PlatformConfiguration\CronConfiguration())->setStage('production')
);
 php
$configuration->addPlatformService(new \Hypernode\DeployConfiguration\PlatformService\VarnishService());
 php
$configuration->addAfterDeployTask(new \Hypernode\DeployConfiguration\AfterDeployTask\SlackWebhook());
 php
$stage = $configuration->addStage('test', 'test.domain.com');
$stage->addBrancherServer('appname');
 console
export SSH_PRIVATE_KEY=***
export DEPLOY_COMPOSER_AUTH=***
export HYPERNODE_API_TOKEN=***
.... etc