Skip to content

Commit

Permalink
Updates Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Jankowski committed Apr 25, 2018
1 parent 66ca3ce commit 3a5bbed
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ function drush_policy_config_export_validate($source = NULL, $destination = NULL
}
```

Create split directories:

```bash
mkdir -p config/dev
mkdir -p config/stage
mkdir -p config/prod
```

In your settings.php update/set your config directory to:

```php
Expand Down Expand Up @@ -77,6 +85,11 @@ if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
$config['config_split.config_split.staging']['status'] = TRUE;
}
}
else {
$config['config_split.config_split.production']['status'] = FALSE;
$config['config_split.config_split.development']['status'] = TRUE;
$config['config_split.config_split.staging']['status'] = FALSE;
}
```

If you are not on pantheon add the following to your settings.local.php file
Expand All @@ -94,6 +107,11 @@ $config['config_split.config_split.development']['status'] = FALSE;
This module is only meant as a starting point. Once installed you should
uninstall the module.

```bash
drush pm-uninstall xeno_config_split
composer remove xenomedia/xeno_config_split
```

There may be cases that you don't need a staging and development split since
they may be exactly the same. In that case you can just delete one of them.

Expand Down

0 comments on commit 3a5bbed

Please sign in to comment.