PHP code example of inja-online / ftp-deployer

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

    

inja-online / ftp-deployer example snippets


'remote_commands' => [
    'migrate --force',
    'app:setup:cache',
    'optimize:clear',
    'optimize',
    ['command' => 'storage:link', 'ignore_failures' => true],
],
text
config/ftp-deployer.php
bash
php artisan ftp-deploy production
bash
php artisan ftp-deploy production --format=agent
bash
php artisan ftp-deploy:check production
bash
php artisan ftp-deploy:check production --format=agent
bash
php artisan ftp-deploy:migrate production