Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precedence for the the property defined in both: external config file and the one that's bundled in the war file should be reversed #3

Closed
itpragmatik opened this issue Oct 29, 2016 · 3 comments
Labels

Comments

@itpragmatik
Copy link

At present if you define same property in external config file and application.yml that's bundled in the application's war file, the property defined in the application.yml in war file takes precedence. I wish the property defined in the external config file could take the precedence. By the way, this plugin is quite useful and thanks for building it!

@sbglasius
Copy link
Owner

sbglasius commented Nov 14, 2016

Thank you for your bug-report. I will look into this shortly. I agree that it is the way it is supposed to work.

@sbglasius sbglasius added the bug label Nov 14, 2016
@avilches
Copy link

Hi, I agree. Until you fixed it, I've just resolve it removing the internal war config... thanks.

@sbglasius
Copy link
Owner

I have finally created a test app: 4758d83 and I'm not able to reproduce this issue.

If I have a file: $HOME/.grails/external-config-test.yml with the content:

test:
  config:
    value: "From Home Config"

and I do a

./gradlew assemble
 java -jar build/libs/external-config-test-0.1.war 

Then I will see the value Value is: From Home Config when visiting http://localhost:8080/test/index

If you can prove me wrong, I'll reopen the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants