kevinsimard/laravel-deploy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kevinsimard/laravel-deploy

最新稳定版本:v1.0.4

Composer 安装命令:

composer require kevinsimard/laravel-deploy

包简介

Deploy Laravel application through SSH

README 文档

README

Installation

Add Kevinsimard\Deploy\Command\Task\DeployTask to the list of commands in app/Console/Kernel.php.

<?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.

<?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

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.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-29