drunomics/phapp_env_mode

Installs: 2 300

Dependents: 1

Suggesters: 1

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:drupal-drush

1.1.2 2019-02-19 07:26 UTC

README

Provides config and drush commands for applying the Phapp environment mode variable.

Prerequesites

Setup

In drunomics/drupal-project, all setup steps are taken care already. For others:

  1. Add the following to settings.php:

    // Set active split configuration.
    $split = getenv('PHAPP_ENV_MODE');
    $config['config_split.config_split.' . $split]['status'] = TRUE;
    
  2. 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.

  3. Run phapp:apply-env-mode during deployments right before drush cim.