[_] Routing test domains though an internal DNS first
Tim Beadle
tim.beadle at gmail.com
Tue Jun 10 16:23:36 BST 2008
On Tue, Jun 10, 2008 at 4:11 PM, Amias Channer <something at amias.org.uk> wrote: > How about external links between two servers using REST,AJAX etc.... > > Obviously it would be nice to derive that from some kind of config > variable in central location but you will need to test the interaction > at some point. > > Also how about if you use images.foo.com , www.foo.com , script.foo.com > flash.foo.com as some people do. We're using java with some config in properties files, using key/value pairs like this: server.flash=flash.site.com server.images=images.site.com server.script=script.site.com You could have server.flash.live, server.flash.dev in one properties file, or separate dev and live properties files, and then have your build process use the right file in the right environment. You'd do something similar with yaml files in RoR, I expect. Either way, you really shouldn't have hostnames hardcoded in your application code. Tim