drunomics / phapp_env_mode
Provides drush commands for applying the phapp environment mode.
Installs: 27 729
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:drupal-drush
Requires
- drush/drush: >=9
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-mode
during deployments right beforedrush cim
.