定制 shawnsandy/deploykit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

shawnsandy/deploykit

Composer 安装命令:

composer require shawnsandy/deploykit

包简介

Laravel deploy kit

README 文档

README

Latest Version on Packagist Software License Total Downloads

Use Laravel Collective's Remote (SSH) package to depoly your websites with the click of a button. Works on PC/MAC/Linux.

Screenshot

alt text

Install

Via Composer

$ composer require shawnsandy/deploykit

Usage

Quick Start

Install the service provider

Add the DeploykitServiceProvider to the config/app.php

'providers' => [
    /*
    * Package Service Providers...
    */

    //...

    ShawnSandy\Deploykit\DeploykitServicesProvider::class,
    Collective\Remote\RemoteServiceProvider::class,

    //...

    ]

Next add the Facade to you config.php

 'aliases' => [
    // ...
      'SSH' => Collective\Remote\RemoteFacade::class,
    // ...
  ],

Publish vendor/packages assets

You can publish vendor files individually using --tag option or all using --provider

Assets

php artisan vendor:publish --tag=deploykit-assets

Views

php artisan vendor:publish --tag=deploykit-views

Config

php artisan vendor:publish --tag=deploykit-config

Migrations

php artisan vendor:publish --tag=deploykit-migrations

Provider

Publishes all vendor files

php artisan vendor:publish --provider="ShawnSandy\Deploykit\DeploykitServicesProvider"

Add the dollowing lines to your routes\web.php

    Route::group(['prefix' => 'deploy', 'middleware' => 'auth'], function (){

        Route::resource('/', '\ShawnSandy\Deploykit\Controllers\DeployKitController');
        Route::get('/connection/{connection}', '\ShawnSandy\Deploykit\Controllers\DeployController');

    });

Config options

return [

    'commands' => [

        "default" => ['cd /var/www', 'git pull', 'php artisan cache:clear'],

        "migrate" => ['cd /var/www', 'git pull', 'php artisan migrate', 'php artisan cache:clear'],

        "update" => ['cd /var/www', 'git pull', 'composer update', 'php artisan migrate', 'php artisan cache:clear'],

    ],

    'limit_responses' => 200,

    'responses_per_page' => 20,


];

Setup and configure Remote (SSH) #Config

Advanced Usage

Soon

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email shawnsandy04@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固