ebess / laravel-ftp-deployment by ebess

18
4
1
Package Data
Maintainer Username: ebess
Maintainer Contact: eduard.bess@gmail.com (Eduard Bess)
Package Create Date: 2015-07-29
Package Last Update: 2021-06-21
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 03:09:21
Package Statistics
Total Downloads: 18
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 4
Total Watchers: 1
Total Forks: 3
Total Open Issues: 1

Laravel 5 - FTP Deployment with WebHook

Installation

composer require ebess/laravel-ftp-deployment
php artisan vendor:publish

Setup

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

    'disks' => [
      // ...
      'deployment' => [
        'driver'    => 'ftp',
        'host'      => 'ftp.server.org',
        'port'      => 21,
        'username'  => 'ftp-user',
        'password'  => 'ftp-password',
        'passive'   => true,
        'root'      => '/'
      ],
      // ...
    ]

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.