In addition to the :primary => true, you have also to set :norelease
=> true on the db server entry, it may also be no_release I dnt
remember off hand, I've just realised how counter intuitive that can
be!

Lee

On Thursday, 9 December 2010, Wil Chung <iam...@gmail.com> wrote:
> Hi all,
>
> I'm stumped after scouring the web and all the documentation. I'm
> hoping that someone can help here, since I feel like I'm just missing
> something minor.
>
> I have one application server and one database server. I have the
> different roles pointing to different ip addresses, but "cap
> deploy:update_code" wants to push the server code to the database
> server for some reason.
>
> I have a deploy script that has the following settings:
>
> set :app_server, "67.207.xxx.xxx"
> set :db_server, "67.207.yyy.yyy"
>
> role :web, app_server
> role :app, app_server
> role :db,  db_server, :primary => true
>
> When I do a "cap deploy" or any of its children, like "cap
> deploy:update", it wants to push my code to the database server at
> 67.207.yyy.yyy, whereas, to my understanding, it should only push to
> the app_server at 67.207.xxx.xxx
>
> What should I do so that cap deploy only deploys to the application
> server?
>
> Wil
>
> --
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to capistrano@googlegroups.com
> * To unsubscribe from this group, send email to 
> capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to