Provides drush commands for applying the phapp environment mode.

Installs: 25 766

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1


1.2.1 2022-01-24 21:03 UTC

This package is auto-updated.

Last update: 2024-05-26 14:00:01 UTC


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



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.