Deploy Laravel Application
Installation
Add Kevinsimard\Deploy\Command\Task\DeployTask to the list of commands in app/Console/Kernel.php., (*1)
<?php namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel {
/**
* @var array
*/
protected $commands = [
...
"Kevinsimard\Deploy\Command\Task\DeployTask",
];
...
Add/edit the config/remote.php file., (*2)
<?php
return [
// default connection name
"default" => "local",
// connections
"connections" => [
"local" => [
"host" => "127.0.0.1",
"username" => "username",
"password" => "password",
"key" => "",
"keytext" => "",
"keyphrase" => "",
"agent" => "",
],
],
// connection groups
"groups" => [
"web" => ["local"]
],
];
Artisan Command
php artisan deploy:app <ROOT>
The following options are available:
* --remote=<CONNECTION>: Remote connection/group name
* --no-composer: Do not install dependencies
* --no-migration: Do not run migration files
* --no-maintenance: Do not use maintenance mode, (*3)
Code Structure
โโโ src
โย ย โโโ Kevinsimard
โย ย โโโ Deploy
โย ย โโโ Command
โย ย โโโ Task
โย ย โโโ DeployTask.php
โโโ .editorconfig
โโโ .gitattributes
โโโ .gitignore
โโโ LICENSE.md
โโโ README.md
โโโ composer.json
License
This package is open-sourced software licensed under the MIT license., (*4)