Hi,

I don't use the same db, and as per a former email,
one single app is deployed several times in the same box with different
database names

so I wonder if this is the right approach or if there's something better
within capistrano microcosmos

on Capfile

task :test_app do
  set :db_config_file,  "test_database.yml"  # yes, I have a one
prefixed _database.yml per deploy
  set :deploy_to, "/home/rails/test/#{application}"  # as hinted by
Jamis (Thx)
end

on deploy.rb

namespace :db do
  desc "Make symlink for database yaml" 
  task :symlink do
    run "ln -nfs #{shared_path}/config/database.yml
#{release_path}/config/#{db_config_file}" 
  end
end


is this a Capistrano way?


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to