Messages per Month
|Xavier de Labouret||Aug 16, 2007 10:33 am|
|Guillaume Laforge||Aug 16, 2007 1:21 pm|
|Xavier de Labouret||Aug 17, 2007 2:58 am|
|Jesse O'Neill-Oine||Aug 21, 2007 9:06 am|
|Graeme Rocher||Aug 21, 2007 9:16 am|
|Graeme Rocher||Aug 21, 2007 9:18 am|
|Jesse O'Neill-Oine||Aug 21, 2007 9:38 am|
|Marc Palmer||Aug 21, 2007 2:10 pm|
|Darren Davison||Aug 22, 2007 4:17 am|
|Marc Palmer||Aug 22, 2007 4:40 am|
|Subject:||Re: [grails-dev] Grails and environment-independant WARs|
|From:||Graeme Rocher (grae...@yahoo.co.uk)|
|Date:||Aug 21, 2007 9:16:06 am|
On 8/21/07, Jesse O'Neill-Oine <jes...@refactr.com> wrote:
We also follow the best practice of migrating the same war file through our environments, so I'm running into this same issue. Is there any reason why the grails.env in application.properties isn't allowed to be overridden by specifying - Dgrails.env=foo so that using the same war from environment to environment is trivial? It would seem that this would be a simple fix in DefaultGrailsApplication.loadMetadata() to default to whatever is in application.properties , but then to override with System.getProperty(GrailsApplication.ENVIRONMENT) if present. With that in place, I believe I would then be able to build a production war, but override it in each of the environments that I must go through for testing, etc. I would love to see this before 0.6 final if at all possible because I wasn't planning on setting up a JNDI dataSource.
I'm not sure we'll have time, I'm doing the RC tomorrow morning. If you raise an issue and supply a patch we can consider its inclusion, but at the moment the only remaining issues I am committed to fixing for 0.6 are GRAILS-1498 and GRAILS-1517
On 8/17/07, Xavier de Labouret <xdel...@cvf.fr> wrote:
I think you may define a dataSource bean in the spring/resources.xml file pointing at a JNDI data source configured in your app server.
Exactly what i needed.
Merci Guillaume :)
-- Xavier de Labouret Online Multimedia - Etudes & Methodes
-- View this message in context: http://www.nabble.com/Grails-and-environment-independant-WARs-tf4281029.html#a12197011 Sent from the grails - dev mailing list archive at Nabble.com.
To unsubscribe from this list please visit:
-- Graeme Rocher Grails Project Lead http://grails.org