PHP code example of shawnsandy / deploykit

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

    

shawnsandy / deploykit example snippets

 php

'providers' => [
    /*
    * Package Service Providers...
    */

    //...

    ShawnSandy\Deploykit\DeploykitServicesProvider::class,
    Collective\Remote\RemoteServiceProvider::class,

    //...

    ]

 php
 'aliases' => [
    // ...
      'SSH' => Collective\Remote\RemoteFacade::class,
    // ...
  ],

  
 bash

php artisan vendor:publish --tag=deploykit-assets

 bash

php artisan vendor:publish --tag=deploykit-views

 bash

php artisan vendor:publish --tag=deploykit-config

 bash 

php artisan vendor:publish --tag=deploykit-migrations


 bash

php artisan vendor:publish --provider="ShawnSandy\Deploykit\DeploykitServicesProvider"

 php

    Route::group(['prefix' => 'deploy', 'middleware' => 'auth'], function (){

        Route::resource('/', '\ShawnSandy\Deploykit\Controllers\DeployKitController');
        Route::get('/connection/{connection}', '\ShawnSandy\Deploykit\Controllers\DeployController');

    });

 php 

return [

    'commands' => [

        "default" => ['cd /var/www', 'git pull', 'php artisan cache:clear'],

        "migrate" => ['cd /var/www', 'git pull', 'php artisan migrate', 'php artisan cache:clear'],

        "update" => ['cd /var/www', 'git pull', 'composer update', 'php artisan migrate', 'php artisan cache:clear'],

    ],

    'limit_responses' => 200,

    'responses_per_page' => 20,


];