[MAGNOLIA-8106] DOC: Different configurations for different environments Created: 26/May/21 Updated: 17/Jun/21 Resolved: 17/Jun/21 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 6.2.9 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Ashraf Khamis | Assignee: | Ashraf Khamis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoR: |
Empty
|
||||||||
| Sprint: | UI FW 30 | ||||||||
| Story Points: | 2 | ||||||||
| Description |
|
Only when the magnolia.yaml.envsubst feature flag is set to true, will the following syntax in a YAML file parse the environment variable:
<url>: !env https://${<ENV>}.api.com/<endpoint>
NOTE: This will only work in plain YAML definitions, not YAML decorator files. TaskCreate a new section in https://docs.magnolia-cms.com/product-docs/Administration/Architecture/Configuration-management.html. |
| Comments |
| Comment by Ashraf Khamis [ 17/Jun/21 ] |
|
Added the following section about the magnolia.yaml.envsubst feature flag: https://docs.magnolia-cms.com/product-docs/6.2/Administration/Architecture/Configuration-management.html#_different_configurations_for_different_environments. Reviewed by Maxime. |