I am uploading images to a grails application that I am developing, and I want to have an environment variable that determines where these images are. Therefore, if I work locally, it can just pull out from / home / MyName / images, but as soon as it appears in the production process, it will pull out from http://images.site.com , How do I do this? I suppose I can configure my config.groovy with variables, I'm just not sure how I switch between them or use them in code.
source share