how do i set up a grails environment variable
Posted
by TripWired
on Stack Overflow
See other posts from Stack Overflow
or by TripWired
Published on 2010-04-05T22:53:48Z
Indexed on
2010/04/05
23:13 UTC
Read the original article
Hit count: 238
I'm uploading images in a grails app I'm developing and I want to be able to have an environment variable the determines where these images are. So if I'm working locally it can just pull from /home/MyName/images but once it's in production it will pull from http://images.site.com. How would I do that? I'm assuming i can set up my config.groovy with the variables i'm just not sure how i switch between them or use them in code.
© Stack Overflow or respective owner