Externalizing Grails Datasource configuration
i have followed the steps in answered section of above question.
grails.config.locations = [ "classpath:appconfig.properties"]
and placed appconfig.properties
in conf
folder. But this configuration is loading. what is the most trusted way to load external database configruation in grails ? My grails version is 1.3.7.
EDIT:
Just now i have changed this code to
grails.config.locations = ["file:${userHome}/.grails/appconfig.groovy"]
and placed the config file in .grails folder in my home folder. it is working in GGTS and war file also.