exolnet/laravel-envoy
Composer 安装命令:
composer require exolnet/laravel-envoy
包简介
Automated deployment template for Laravel Envoy based on Capistrano.
README 文档
README
This repository contains automated deployment template for Laravel Envoy. The deployment flow is based on Capistrano.
Installation
-
Require this package with composer:
composer require --dev exolnet/laravel-envoy:"^1.9" -
Create a
Envoy.blade.phpon your project's root with the following content:@import('exolnet/laravel-envoy')For a typical Laravel project, you should have a file looking like:
@import('exolnet/laravel-envoy') @task('deploy:publish') cd "{{ $releasePath }}" php artisan down php artisan config:cache php artisan event:cache php artisan route:cache php artisan view:cache php artisan storage:link php artisan migrate --force php artisan up @endtask
-
Create your deployment configuration in your Laravel project at
config/deploy.php. An example config file is provided in this repository atconfig/deploy.phpFor a typical Laravel project, you should have a file looking like:
<?php return [ 'name' => 'example', 'default' => 'production', 'environments' => [ 'production' => [ 'ssh_host' => 'example.com', 'ssh_user' => 'example', 'deploy_path' => '/srv/example', 'repository_url' => 'git@github.com:example/example.git', 'linked_files' => ['.env'], 'linked_dirs' => ['storage/app', 'storage/framework', 'storage/logs'], 'copied_dirs' => ['node_modules', 'vendor'], ], ], ];
-
Enjoy!
Upgrade
Please read UPGRADE-1.x for the procedure to upgrade to version 1.x.
Usage
The following macro are available:
vendor/bin/envoy run setup: Setup the directory structure and repository on the remote hostvendor/bin/envoy run deploy --commit=abcdef: Deploy commitabcdefto the remote hostvendor/bin/envoy run deploy:publish --current: Run thedeploy:publishtask for the current release on the remote hostvendor/bin/envoy run releases: List available releases on the remote hostvendor/bin/envoy run rollback [--release=123456]: Rollback to previous release or to123456if specified on the remote hostvendor/bin/envoy run backups: List existing backups on the remote host
You can also use the native Envoy command too:
vendor/bin/envoy tasks: List available tasks and macrosvendor/bin/envoy ssh: Connect to the remote host
Note that you can also use the option --env=foo with any of the previous command to connect to an other remote
define in the configuration.
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
SSH StrictHostKeyChecking is enforced when using git over ssh. If your remote git repository server does not support SSHFP/VerifyHostKeyDNS, you will need to manually create the known_hosts file on the remote host.
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
- Alexandre D'Eschambeault
- Tom Rochette
- Patricia Gagnon-Renaud
- Simon Gaudreau
- Martin Blanchette
- All Contributors
License
Copyright © eXolnet. All rights reserved.
This code is licensed under the MIT license. Please see the license file for more information.
exolnet/laravel-envoy 适用场景与选型建议
exolnet/laravel-envoy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.37k 次下载、GitHub Stars 达 23, 最近一次更新时间为 2015 年 06 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「deployment」 「capistrano」 「envoy」 「exolnet」 「continuous-deployment」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 exolnet/laravel-envoy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 exolnet/laravel-envoy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 exolnet/laravel-envoy 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Morpht Development Tools
blueways deployer recipes
This bundle provides functionality for Continuous Integration & Automated Deployments for Symfony-based projects
A Highly Opinionated Symfony3/4 Deployer Recipe
A Deployment/Change Log Schedule and Notes system for SilverStripe sites
Deployment command
统计信息
- 总下载量: 17.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-30