I'm running grails prod war
to create my app's .war
file. The problem is, I need to somehow set a system property that can be accessed in grails-app/conf/Config.groovy
when that .war is being built.
How can I do this? Grails version 2.1.0
I'm running grails prod war
to create my app's .war
file. The problem is, I need to somehow set a system property that can be accessed in grails-app/conf/Config.groovy
when that .war is being built.
How can I do this? Grails version 2.1.0
You need to set this property when the war is being launched, not when it's being built. If the app is being hosted by Tomcat (or similar) you would typically adds this as a parameter to the java command that launches Tomcat.
grails -Dproperty=value prod war