thinkshout/robo-drupal
最新稳定版本:4.0.2
Composer 安装命令:
composer create-project thinkshout/robo-drupal
包简介
Robo Tasks for Drupal projects
README 文档
README
Robo commands and tasks for Drupal
Doc pages are at https://thinkshout.github.io/robo-drupal/index.html
Classes are listed at https://thinkshout.github.io/robo-drupal/class_think_shout_1_1_robo_drupal_1_1_tasks.html
Update information
If you update to the 3.x release, you will need to rerun robo configure to set the TS_PROD_BRANCH variable (--prod-branch=main). This allows you to use a branch name for production deployments that is not the default. If you do not specify a production branch, it will default to "main".
Once you have set a production branch, you can create a branch with that name from your current production branch, push the new branch up to github, and delete the old branch. In some cases, you may need to change the default branch in github (although that is normally "develop"). You may want to review open pull requests as well, and notify other developers on the project to update their local repositories by pulling down the new branch.
Installation
- Start by requiring it for dev environments:
composer require --dev thinkshout/robo-drupal -W - In your projects' composer.json file, under "extra" -> "drupal-scaffold" -> "allowed-packages" add "thinkshout/robo-drupal"
- If you don't have a
.env.distfile in your project's root, runrobo init. - Run
robo configure. This should create a.envfile based on your.env.distfile. - Test out the configuration above by pulling down the live database:
robo pull:config # Makes a database backup and pulls it locally.
robo install # Builds your local database - you can pull from "local"
- In your project's ".gitignore" file, add the ".env" file at the bottom, like so (you might just need to uncomment):
# Ignore generated config
.env
统计信息
- 总下载量: 105.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-08-18