Last active
December 30, 2015 18:19
-
-
Save JacobASeverson/7866911 to your computer and use it in GitHub Desktop.
Gist for OPI Blog post "Grails Config Values Per Tomcat Host"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
try { | |
exConfig = ((Context)(new InitialContext().lookup("java:comp/env"))).lookup("grailsExtConfFile") | |
} catch (Exception e) { | |
println("External configuration lookup failed: " + e) | |
} | |
grails.config.locations = ["${exConfig}"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment