Bobby Akyong
Bobby Akyong

Reputation: 241

Setting external configuration file on linux

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:

  1. Where do I have to put file "external-config.groovy" on my linux server?

  2. How can my server know "classpath" ?

  3. Do I have to use an absolute path?

Upvotes: 0

Views: 171

Answers (1)

Uday
Uday

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

Related Questions