I’m building an app in rails that will be deployed on 3 different
servers but am not sure the best way to deploy it. The app is
something like Google Adwords (an online advertising program,
ServerA is the Administration server
ServerB is the Ad server (feeds ad requests to affiliates)
ServerC is the Click server (handles incoming clicks from our affiliate
All 3 servers will use the same database cluster.
I have been building the app under one rails app directory because the
different parts depend on each other. For instance, the Admin code
depends on classes in the Click code which depends on the Ads code…
These dependencies have left me confused about the best way to deploy.
My initial thought was to just deploy the complete app to all 3
servers and whatever code gets used, gets used. Since they are all on
the same database cluster, you ostensively could use any part of the
code on any of the servers; it’s all controlled by how we drive the
specific traffic to the servers (via DNS/domainnames).
Anyone see problems with this? Is there a better way? Maybe
something fancy with Capistrano, et al?