Skip to content

Commit

Permalink
fix(core): Spring does not override default configuration files. (spi…
Browse files Browse the repository at this point in the history
…nnaker#795)

Signed-off-by: Jammy Louie <jlouie@pivotal.io>
  • Loading branch information
jmelchio authored and Jon Schneider committed May 10, 2019
1 parent 70024a3 commit 833edc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gate-web/gate-web.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'spinnaker.application'

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

run {
systemProperty('spring.config.location', project.springConfigLocation)
systemProperty('spring.config.additional-location', project.springConfigLocation)
systemProperty('spring.profiles.active', project.springProfiles)
}
mainClassName='com.netflix.spinnaker.gate.Main'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Main {
'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': 'gate',
'spring.config.name': 'spinnaker,${spring.application.name}',
'spring.profiles.active': '${netflix.environment},local'
Expand Down

0 comments on commit 833edc2

Please sign in to comment.