'John Merlino' via Ruby on Rails: Talk
2014-May-01 06:50 UTC
capistrano: deploying production and staging to same database
I have the production and staging site on two different server ips. But the database, another server ip, is the same database used by both production and staging. When i set up the capistrano deploy task for both the production and staging, should I keep the db role in deploy.rb like this: deploy.rb role :db, "database_ip", :primary => true production.rb role :web, "production_ip" role :app, "production_ip" staging.rb role :web, "staging_ip" role :app, "staging_ip" Or should I do it this way: production.rb role :web, "production_ip" role :app, "production_ip" role :db, "database_ip", :primary => true staging.rb role :web, "production_ip" role :app, "production_ip" role :db, "database_ip", :primary => true -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f4494c9d-b537-4e7e-b92f-b50f56520870%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.