Skip to content

zach2825/laravel-ftp-deployment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 8 - FTP Deployment with WebHook

Notes:

Installation

composer require zach2825/laravel-ftp-deployment
php artisan vendor:publish --tag=ftp-deployment

Setup

Create a filesystem disk to deploy to in config/filesystem.php

        'example' => [
            'driver'   => 'ftp',
            'host'     => env('DEV_FTP_HOST'),
            'username' => env('DEV_FTP_USER'),
            'password' => env('DEV_FTP_PASS'),

            // Optional FTP Settings
            // 'port'     => 21,
            // 'root'     => env('DEV_FTP_ROOT', '/var/www/html/example'),
            // 'passive'  => true,
            // 'ssl'      => true,
            // 'timeout'  => 30,
        ],

Adjust which files should be deployed and hooks in config/ftp-deployment.php

Deploy to server

php artisan deploy:server <servername> <--refresh=0> <--debug=1>

Use refresh to refresh the database migrations and run the seeders. If flag not set, only migration will be run.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%