[MAGNOLIA-7821] DOC: Environment variable for profile-based configuration Created: 05/Jun/20  Updated: 19/Aug/20  Resolved: 19/Aug/20

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 6.2.2
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Ashraf Khamis Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: configuration
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MAGNOLIA-7811 Remove deprecated configurations styl... Accepted
documentation
documents MAGNOLIA-7804 Make system properties and environmen... Closed
documents MAGNOLIA-7809 Allow magnolia profile to be specifie... Closed
documents MAGNOLIA-7810 Fail when specified configuration pro... Closed
documents MAGNOLIA-7781 Follow-up - Improve profile and magno... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: Product improvements for Cloud project features
Sprint: TE 8, TE 9
Story Points: 5

 Description   

There is a new environment variable (MAGNOLIA_PROFILE) that enables a profile-based configuration style when set (MAGNOLIA-7781). This has been extended so that the configuration profile could be specified as a system property (MAGNOLIA-7809). See DefaultMagnoliaPropertiesResolver for more details.

There is also the new EnvironmentPropertySource, which exposes environment variables such as SystemPropertySource. To simplify test setups, both EnvironmentPropertySource and SystemPropertySource have been made injectable (MAGNOLIA-7804). If a non-existing configuration profile is specified, Magnolia will fail to start up and will log an error message (MAGNOLIA-7810).

The previous configuration style, which was based on server name and app name, is now deprecated. It will be removed at some point in the future, and the profile-based configuration will be made the default style (MAGNOLIA-7811).



 Comments   
Comment by Ashraf Khamis [ 19/Aug/20 ]

Added MAGNOLIA_PROFILE and profile-based configuration of property files to the following pages:

Reviewed by Michael.

Generated at Mon Feb 12 04:27:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.