thereference/robo-lando
Composer 安装命令:
composer require thereference/robo-lando
包简介
Lando extension for Robo Task Runner
README 文档
README
Extension to execute Lando commands in Robo.
Runs Lando commands in stack. You can define global options for all commands (like Lando init).
The option -y assumed by default but can be overridden on calls to exec() by passing false as the second parameter.
Table of contents
Installation
Versions
~1.0: Robo >= 1.0.0-RC1
Add "thereference/robo-lando": "~1" to your composer.json:
{
"require-dev": {
"thereference/robo-lando": "~1"
}
}
Execute composer update.
Testing
composer test
Usage
Use the trait (according to your used version) in your RoboFile:
class RoboFile extends \Robo\Tasks { // ~1 for Robo >=1.0.0-RC1 use \TheReference\Robo\Task\Lando\loadTasks; //... }
Examples
Show Configuration
$this->taskLandoConfig() ->run();
Destroy the infrastructure of an application
$this->taskLandoDestroy() ->application("myapp") ->run();
Get information about a Lando application
$this->taskLandoInfo() ->application("myapp") ->deep() ->run();
Initialize a new Lando application
$this->taskLandoInit() ->recipe("drupal8") ->webroot("./") ->run();
List the running Lando applications
$this->taskLandoList() ->run();
Print Lando logs of an application
$this->taskLandoLogs() ->recipe("drupal8") ->webroot("./") ->run();
Shut down all running Lando containers
$this->taskLandoPoweroff() ->run();
Rebuild Lando containers and tools
$this->taskLandoRebuild() ->services(array("database", "appserver") ->run();
Stop and restart a Lando application
$this->taskLandoRestart() ->application("myapp") ->run();
Publicly expose a Lando URL
$this->taskLandoShare() ->url("http://localhost:32785") ->run();
Ssh into a specific service of a Lando application and execute a command
$this->taskLandoSsh() ->user("johndoe") ->command("ls -l /") ->run();
Start a Lando application
$this->taskLandoStart() ->application("myapp") ->run();
Stop a Lando application
$this->taskLandoStop() ->application("myapp") ->run();
Print the version of Lando
$this->taskLandoVersion() ->run();
thereference/robo-lando 适用场景与选型建议
thereference/robo-lando 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 97 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 10 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thereference/robo-lando 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thereference/robo-lando 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 97
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-12