-1

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.

Community
  • 1
  • 1
CSR
  • 770
  • 1
  • 14
  • 30

1 Answers1

0

Your config is not loaded when running with grails run-app? Or in deployment on tomcat? Or either?

Try to look at this answer

Community
  • 1
  • 1
Fabiano Taioli
  • 5,270
  • 1
  • 35
  • 49