Hi, using cap 2.5.19, rails 2.3.2

We're having the same deployment issues as in this thread from 3 years
ago:

http://groups.google.com/group/capistrano/browse_thread/thread/fcbeedf62e4cae2b/d502b83d54432d11

Essentially we have the app and test server within a corporate
firewall, to which we have external access on our development
machines.  The subversion server is inside our network, and not
accessible from outside EXCEPT for those servers on their corporate
network.

We connect to their corporate network via VPN and do

cap staging_server deploy

and get a an error grabbing the latest revision because it tries to
execute svn info -rHEAD from the local machine which cannot access the
svn server while connected to their vpn.

So it would seem that grabbing the HEAD revision from thier machine
would make sense.  But we have tried the solution provided in the
thread above and have no luck.

Added these to the config/deploy.rb file (trying the different lines
one at a time) and all give the same, broken result.

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

set(:real_revision) {source.query_revision(revision) { |cmd|
with_env("LC_ALL", "C") { invoke_command (cmd) } } }

set :real_revision, source.query_revision(revision) { |cmd| `#{cmd}` }

Can anyone give lead on how to configure  the :real_revision to be
executed from the remote machine?

Thanks,

Mike

-- 
* 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