We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1dcac commit a2844e0Copy full SHA for a2844e0
1 file changed
src/main/java/eu/openanalytics/containerproxy/ContainerProxyApplication.java
@@ -112,7 +112,11 @@ public static void main(String[] args) {
112
113
app.addListeners(new LoggingConfigurer());
114
115
- boolean hasExternalConfig = Files.exists(Paths.get(CONFIG_FILENAME));
+ boolean hasExternalConfig = Files.exists(Paths.get(CONFIG_FILENAME))
116
+ || System.getProperty("spring.config.location") != null
117
+ || System.getenv("SPRING_CONFIG_LOCATION") != null
118
+ || Arrays.asList(args).contains("--spring.config.location");
119
+
120
if (!hasExternalConfig) {
121
app.setAdditionalProfiles(CONFIG_DEMO_PROFILE);
122
Logger log = LogManager.getLogger(ContainerProxyApplication.class);
0 commit comments