Skip to content

Commit

Permalink
Document experimental wildcard environments
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Sep 10, 2018
1 parent 1ea18de commit 704e908
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ dev:
user: www-data
```

### Wildcard environments (Experimental)

It is also possible to define "wildcard" environments that will match any provided environment name. This is only possible to do in instances where the contents of the wildcard aliases are all the same, except for places where the environment name appears. To substitute the name of the environment into a wildcard domain, use the variable replacement string `${env-name}`. For example, a wildcard alias that will match any multisite in a Drupal site might look something like the following example:
```
'*':
root: /wild/path/to/wild
uri: https://${env-name}.example.com
```

### 'Self' environment aliases

As previously mentioned, an alias in the form of `@<env>` is interpreted as `@self.<env>`. This allows sites to define a `self.site.yml` file that contains common aliases shared among a team--for example, `@stage` and `@live`.
Expand Down

0 comments on commit 704e908

Please sign in to comment.