> Hey everyone!  Hope you guys are all doing good.
>
> I was wondering how anyone here might be handling their 
> mongrel_cluster.yml file with capistrano on multiple environments.  I 
> have my team, 3 of us with our own local development environment, a test 
> webserver with nginx/5mongrels and a pack of live servers with 
> nginx/12mongrels each.  I haven't finished my capistrano recipe yet but 
> it looks to me like when I deploy it's going to overwrite all my 
> mongrel_cluster.yml files on every machine, both test and production, 
> with the same file.  That would make things screwy.  I want all the 
> production servers to get the same yml file but the test one should be 
> different.
>
> Thoughts?

You could do something like this...

desc "Link in the production database.yml"
task :after_update_code, :roles => :app do
   run "cp #{release_path}/config/database.yml-production 
#{release_path}/config/database.yml"
end

Just alter the filenames to match your mongrel.yml's instead of 
database.yml's...

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to