Skip to content

Commit

Permalink
fix(core): Switch location to additional-location (#527)
Browse files Browse the repository at this point in the history
In boot2, location overrides rather than adds to the default
config locations.
  • Loading branch information
ezimanyi authored May 17, 2019
1 parent c88c7e3 commit 2443dd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions front50-web/front50-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ if (gradle.includedProviderProjects.contains(':front50-oracle')) {
}

ext {
springConfigLocation = System.getProperty('spring.config.location', "${System.getProperty('user.home')}/.spinnaker/")
springConfigLocation = System.getProperty('spring.config.additional-location', "${System.getProperty('user.home')}/.spinnaker/")
}

run {
systemProperty('spring.config.location', project.springConfigLocation)
systemProperty('spring.config.additional-location', project.springConfigLocation)
}
mainClassName = 'com.netflix.spinnaker.front50.Main'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Main extends SpringBootServletInitializer {
'netflix.environment' : 'test',
'netflix.account' : '${netflix.environment}',
'netflix.stack' : 'test',
'spring.config.location' : '${user.home}/.spinnaker/',
'spring.config.additional-location' : '${user.home}/.spinnaker/',
'spring.application.name': 'front50',
'spring.config.name' : 'spinnaker,${spring.application.name}',
'spring.profiles.active' : '${netflix.environment},local'
Expand Down

0 comments on commit 2443dd1

Please sign in to comment.