server "a", :app
server "b", :app

set :gateway, 'gate1'

server "c", :app
server "d", :app

Will do what you want, the first two wont have a gateway, but the latter two 
will and they'll all be in the app role 

On Dec 5, 2011, at 9:45 AM, Nobuhiro Nikushi <[email protected]> wrote:

> Hi all. I'm trying my Capfile to choise whether or not to use gateway
> server depend on servers or roles.
> 
> my enviroment:
> client ----------------> server_a
>         ----------------> server_b
>         --> gate1  --> server_c
>         --> gate1  --> server_d
> 
> I tried the multiple-gateways function supported after 2.6.0.
> https://github.com/capistrano/capistrano/pull/18
> 
> I tried following codes, it work well for server_c and d. but not work
> for server_a and b. cap try to connect via gate1 :(
> 
> set :gateway, {
>  'gate1' => [ 'server_c', 'server_d' ],
> }
> 
> I want client to connect to server_a and b directly.
> 
> Does anyone have good idea?
> 
> --Nobuhiro Nikushi
> 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] 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 [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to