Hello,
I'm trying to configure Capistrano 2, but it refuses to checkout
from my subversion repository on deploy:cold. At first, I was getting
the following error message:
* executing "svn checkout -q -r2 <snip>/svn/hdlogger/trunk /var/
rails/hdlogger/releases/20070820200809 && (echo 2 > /var/rails/
hdlogger/releases/20070820200809/REVISION)"
servers: ["<snip>"]
Password:
[madphoenix.doit.wisc.edu] executing command
** [out] sh: line 1: svn: command not found
command finished
I found this odd because subversion is *definitely* installed on the
server. I then updated my deploy.rb file to include the line:
set :scm_command, "/opt/local/bin/svn"
(I'm running on OS 10.4 Server, with subversion installed in /opt/
local by MacPorts)
And now I get an even stranger error:
* executing `deploy:update_code'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
command not found: /opt/local/bin/svn info <snip>/svn/hdlogger/trunk -
rHEAD
*** [deploy:update_code] rolling back
* executing "rm -rf /var/rails/hdlogger/releases/20070820201033;
true"
servers: ["<snip>"]
Password:
[<snip>] executing command
command finished
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/capistrano/
recipes/deploy/scm/subversion.rb:56:in `query_revision': undefined
method `[]' for false:FalseClass (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy/scm/base.rb:63:in `local'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy.rb:37:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/variables.rb:87:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/variables.rb:87:in `fetch'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/variables.rb:110:in `protect'
... 35 levels...
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/cli/execute.rb:14:in `execute'
from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.0.0/bin/
cap:4
from /usr/local/bin/cap:16:in `load'
from /usr/local/bin/cap:16
I'm at a loss to explain why it can't talk to subversion. Any ideas?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---