Exemple #1
0
<?php

// Require the deployer class
require_once 'php-deployer.php';
$config = array('remote' => 'https://github.com/Swiper-CCCVI/php-github-deploy.git', 'target' => '/var/www/default', 'branch' => 'master', 'temp' => '/tmp/deploy', 'secret' => 'yoursecretaccesstoken', 'exclude' => '.exclude');
// Initialize the deployer
$deployer = new Deployer($config);
// Deploy the deployer
$deployer->deploy();
// Log the deployer output
$deployer->log_output('/var/log/deploy.log');
// Echo the deployer output
$deployer->echo_output();