ebess/laravel-ftp-deployment

There is no license information available for the latest version (0.0.1) of this package.

0.0.1 2015-11-03 19:11 UTC

This package is auto-updated.

Last update: 2024-10-29 04:31:04 UTC


README

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.