PHP code example of rnsharma93 / lara-ftp-deployer

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

    

rnsharma93 / lara-ftp-deployer example snippets


'exclude' => [
    '.git',
    '.env',
    '.env.*',
    'node_modules',
    'tests',
    'storage/logs',
    'storage/framework/cache',
    'storage/framework/sessions',
    'storage/framework/views',
    '.idea',
    '.vscode',
],

'artisan_commands' => [
    'down',
    'migrate --force',
    'optimize:clear',
    'config:cache',
    'up',
],
bash
php artisan vendor:publish --tag="deployer-config"
bash
php artisan ftp:deploy --init
bash
php artisan ftp:deploy
bash
php artisan ftp:deploy --env=staging
bash
php artisan ftp:deploy --skip-npm --env=production
bash
php artisan ftp:cmd --cmd="migrate"
php artisan ftp:cmd --cmd="cache:clear" --env=staging
bash
php artisan ftp:logs
bash
php artisan ftp:logs --watch
bash
php artisan ftp:logs --path="worker.log" --tail=50
bash
php artisan ftp:logs --download