drunomics/phapp_env_mode

Provides drush commands for applying the phapp environment mode.

Installs: 28 221

Dependents: 0

Suggesters: 1

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 1

Type:drupal-drush

1.2.1 2022-01-24 21:03 UTC

This package is auto-updated.

Last update: 2024-12-26 15:12:23 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.