PHP code example of valorin / deploy

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

    

valorin / deploy example snippets


php artisan deploy --remote=github --branch=production

'providers' => array(
    ...
    'Valorin\Deploy\DeployServiceProvider',
),

'commands' => array(
    'down'     => 'php artisan down',
    'checkout' => 'git checkout -f {branch|master}',
    'fetch'    => 'git fetch {remote|origin}',
    'tags'     => 'git fetch {remote|origin} --tags',
    'pull'     => 'git pull -f {remote|origin} {branch|master}',
    'composer' => 'composer install {composer-args|--no-dev}',
    'up'       => 'php artisan up',
    'queue'    => 'php artisan queue:restart',
)

php artisan deploy --set-remote=github --set-branch-production

./app/config/packages/valorin/deploy/config.php