Skip to content

Instantly share code, notes, and snippets.

@JacobASeverson
Last active December 30, 2015 18:19
Show Gist options
  • Save JacobASeverson/7867004 to your computer and use it in GitHub Desktop.
Save JacobASeverson/7867004 to your computer and use it in GitHub Desktop.
Gist for OPI Blog post "Grails Config Values Per Tomcat Host"
...
if (Environment.current in [Environment.DEVELOPMENT, Environment.TEST]) {
exConfig = "file:/path/to/local/applicationConfig.groovy"
} else {
try {
exConfig = ((Context)(new InitialContext().lookup("java:comp/env"))).lookup("grailsExtConfFile")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment