LaravelPackages.net
Acme Inc.
Toggle sidebar
ebess/laravel-ftp-deployment

18
4
0.0.1
About ebess/laravel-ftp-deployment

ebess/laravel-ftp-deployment is a Laravel package. It currently has 4 GitHub stars and 18 downloads on Packagist (latest version 0.0.1). Install it with composer require ebess/laravel-ftp-deployment. Discover more Laravel packages by ebess or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments