Jun 6th, 2011, 06:45 AM
Overriding Grails Database Configuration.
In Grails if we want to use database we have to use Grails Datasource.groovy. We have almost 15 different envoirnments in which we deploy our applications. on top of this we have another requirement that we will create one war that can be deployed in any of evironments without needing to recreate/recompile the code.
like we have dev, test, nightly, UAT, disaster recovery ...etc & then Production envoirnment where we deploy our application.
Normally what we do is that we create our own envoirnment settings file and based on SITE location e.g. computer naming pattern we write our dataSources. So it will read dynamically at runtime where the code is executing. How can Envoirnment help us is this situation ? I am bit naive in Grails/Groovy.
Tags for this Thread