Reputation: 241
I'm trying to use external configuration to deploy a war.
This is my configuration for external file location in config.groovy
:
grails.config.locations =
[
"classpath:external-config.groovy"
]
I read this post, but I still don't get it:
Where do I have to put file "external-config.groovy" on my linux server?
How can my server know "classpath" ?
Do I have to use an absolute path?
Upvotes: 0
Views: 171
Reputation: 629
You can put this file in your tomcat lib directory. I generally put a println with some message as well in my external config to make sure it's loaded.
Upvotes: 1