PHP code example of upassist / phpci-deployer
1. Go to this page and download the library: Download upassist/phpci-deployer 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/ */
upassist / phpci-deployer example snippets
server(getenv('STAGE'), getenv('SERVER'))
->user(getenv('USER'))
->env('deploy_path', getenv('DEPLOY_PATH'))
->env('branch', getenv('BRANCH'))
->env('local_release_path', __DIR__ . '/tmp/release/' . getenv('BUILD'))
->env('rsync_src', __DIR__ . '/tmp/release/' . getenv('BUILD'))
->env('rsync_dest', '{{release_path}}')
->stage(getenv('STAGE'))
->identityFile('~/.ssh/id_rsa.pub', '~/.ssh/id_rsa', '');