[Ruby] Handling multiple deployment environments in Vlad
Victor Cosby
victorcosby at gmail.com
Mon Jan 14 18:12:43 PST 2008
Vlad simply rocks.
What I need to know is the best way to handle multiple deployment files for
different environments. Most of my tasks will be the same with only some of
the variables needing to change depending on the environment I'm deploying
(rails_env, mongrel_*, deploy_to, domain).
Would you setup different deployment files like in Capistrano, e.g.
deploy.rb, stage.rb, qa.rb, etc. If so, how would you load and refer to
them?
Or is there a way to keep all this in a single deployment file and use
namespaces to manage deployment (vlad:production:deploy,
vlad:staging:deploy, ...).
Or would you have some setup task to override the variables you want to
change before running the tasks (vlad:prepare_production, vlad:deploy, ...)
Thanks,
Victor
--
Victor Cosby
Independent Software Consultant and Web Developer
LFL Communications
email: victorcosby at gmail.com
More information about the Ruby
mailing list