Let's say you have a fairly dynamic infrastructure for your new Rails application mostly because you're scared of the Fail Whale. At the same time, you need to make sure that you can deploy code quickly using capistrano. And... you don't necessarily want to hard-code all the things. Here is how we solved it.