Details
-
Task
-
Resolution: Done
-
Neutral
-
None
-
6.2.2
-
None
-
-
Empty show more show less
-
Empty show more show less
-
TE 8, TE 9
-
5
Description
There is a new environment variable (MAGNOLIA_PROFILE) that enables a profile-based configuration style when set (). This has been extended so that the configuration profile could be specified as a system property (MAGNOLIA-7781MAGNOLIA-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 (). If a non-existing configuration profile is specified, Magnolia will fail to start up and will log an error message (MAGNOLIA-7804MAGNOLIA-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).
Checklists
Attachments
Issue Links
- documents
-
MAGNOLIA-7804 Make system properties and environment variables injectable
-
- Closed
-
-
MAGNOLIA-7809 Allow magnolia profile to be specified via system property
-
- Closed
-
-
MAGNOLIA-7810 Fail when specified configuration profile doesn't exist
-
- Closed
-
-
MAGNOLIA-7781 Follow-up - Improve profile and magnolia.properties handling in cloud bundle
-
- Closed
-
- relates to
-
MAGNOLIA-7811 Remove deprecated configurations style based on server and app name
-
- Accepted
-