drunomics/phapp_env_mode
最新稳定版本:1.2.1
Composer 安装命令:
composer require drunomics/phapp_env_mode
包简介
Provides drush commands for applying the phapp environment mode.
README 文档
README
Provides config and drush commands for applying the Phapp environment mode variable.
Prerequesites
- A phapp-cli enabled project.
- A working dotenv setup that loads PHAPP environment variables, as existing in drunomics/drupal-project
Setup
In drunomics/drupal-project, all setup steps are taken care already. For others:
-
Add the following to settings.php:
// Set active split configuration. $split = getenv('PHAPP_ENV_MODE'); $config['config_split.config_split.' . $split]['status'] = TRUE; -
Export some config split configuration that will set further config per environment in your config sync directory, name the split like the environment mode, "development", or "production".
You may use drunomics/dsk-config-split for creating suiting config.
-
Run
phapp:apply-env-modeduring deployments right beforedrush cim.
统计信息
- 总下载量: 30.18k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2019-02-18