Deployment servers inside VPN

109 views
Skip to first unread message

viktor

unread,
Nov 24, 2007, 9:07:13 AM11/24/07
to Capistrano
Hi,

I have configuration in which app, db and web servers are placed
inside corporate network and SVN repository is placed outside.
Firewall is configured to allow connections from servers to remote SVN
repository.

Developers are using VPN clients to access corporate network. Because
of security reasons clients (developers) are not allowed to connect to
Internet through VPN, which is why they can not see SVN repository
directly.

Capistrano hangs on update_code command because it tries to retrieve
real svn revision by issuing svn info svn://xxx.xxx.xxx/repo -rHEAD
locally on developers machine.

What is best way to change this behavior. I would like to force
execution of above mentioned command on remote host (which have access
to SVN repository).

I suppose I should override query_revision method??

Thx. in advance!

Viktor

Jamis Buck

unread,
Nov 24, 2007, 9:31:08 AM11/24/07
to capis...@googlegroups.com
Try overriding the :real_revision variable so that it looks something
like this:

set(:real_revision) { source.query_revision { |cmd| capture(cmd) } }

- Jamis

> --~--~---------~--~----~------------~-------~--~----~
> To unsubscribe from this group, send email to capistrano-
> unsub...@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/capistrano
> -~----------~----~----~----~------~----~------~--~---
>

viktor

unread,
Nov 24, 2007, 10:16:23 AM11/24/07
to Capistrano
Hi,

yes this is a solution. I have only added argument to query_revision
because it takes one. So line you have suggested to me now looks like
this:

set(:real_revision) { source.query_revision( revision ) { |cmd|
capture(cmd) } }

Thank you very much Jamis.

Viktor
On Nov 24, 3:31 pm, Jamis Buck <ja...@37signals.com> wrote:
> Try overriding the :real_revision variable so that it looks something
> like this:
>
> set(:real_revision) { source.query_revision { |cmd| capture(cmd) } }
>
> - Jamis
>
> On Nov 24, 2007, at 7:07 AM, viktor wrote:
>
>
>
> > Hi,
>
> > I have configuration in which app, db and web servers are placed
> > inside corporate network and SVN repository is placed outside.
> > Firewall is configured to allow connections from servers to remote SVN
> > repository.
>
> > Developers are using VPN clients to access corporate network. Because
> > of security reasons clients (developers) are not allowed to connect to
> > Internet through VPN, which is why they can not see SVN repository
> > directly.
>
> > Capistrano hangs on update_code command because it tries to retrieve
> > real svn revision by issuing svn info svn://xxx.xxx.xxx/repo -rHEAD
> > locally on developers machine.
>
> > What is best way to change this behavior. I would like to force
> > execution of above mentioned command on remote host (which have access
> > to SVN repository).
>
> > I suppose I should override query_revision method??
>
> > Thx. in advance!
>
> > Viktor
> > >
>
>
> smime.p7s
> 3KDownload
Reply all
Reply to author
Forward
0 new messages