pantheon-systems/terminus-site-clone-plugin
Composer 安装命令:
composer require pantheon-systems/terminus-site-clone-plugin
包简介
Site Clone - A Terminus plugin that adds command(s) to facilitate cloning sites on Pantheon.
README 文档
README
Site Clone - A Terminus plugin that adds the site:clone command to facilitate cloning sites on Pantheon.
Disclaimer
While this script has worked well for us your mileage may vary due to local machine configuration. If you are having issues with running this plugin locally try using this Dockerfile, which has all the tools needed pre installed.
Installation
Installing via Terminus 3
terminus self:plugin:install pantheon-systems/terminus-site-clone-plugin
Installing with Composer (deprecated method using Terminus 2)
composer -n create-project pantheon-systems/terminus-site-clone-plugin:^2 ~/.terminus/plugins/terminus-site-clone-plugin
Manual installation
Clone this project into your Terminus plugins directory found at $HOME/.terminus/plugins. If the $HOME/.terminus/plugins directory does not exists you can safely create it. You will also need to run composer install in the plugin directory after cloning it. See installing Terminus plugin for details.
Requirements
- Terminus
2.0or greater - git command line
1.7.10or greater
Usage
terminus site:clone <source>.<env> <destination>.<env> where <source> and <destination> are site UUID or machine name and <env> is a valid environment (dev or multidev).
Code cannot be cloned to or from test and live environments as work must go through the Pantheon workflow. You can, however, use --no-code to clone the files and database to or from a test or live environment. Note that if you use --no-code, the PHP version won't be set to the one from the site you are cloning from.
You can also pass the argument(s) --no-database, --no-files and/or --no-code to skip cloning one or more items. You cannot, however, skip all three as there would be nothing left to clone.
By default, backups are made on both the source and destination environment before cloning. Use --no-source-backup and/or --no-destination-backup to omit one of both backups.
Notes
- Files and database backups over 500MBs will not work** due to Pantheon import file size limits. If your files or database are over 500MB they will need to be manually migrated.
- If you pass the
--no-source-backupflag, the system will use the last taken backup as the source database.
Changelog
2.0.0
- Add support for Terminus
2.0 - Remove support for Terminus
1.x - Separate options for backing up source and destination
- Use
git clone --single-branchto avoid downloading unnecessary history
1.0.0
- Initial release
License
MIT
pantheon-systems/terminus-site-clone-plugin 适用场景与选型建议
pantheon-systems/terminus-site-clone-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 76.33k 次下载、GitHub Stars 达 23, 最近一次更新时间为 2018 年 05 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pantheon-systems/terminus-site-clone-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pantheon-systems/terminus-site-clone-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 76.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-08