Hi guys, I got a problem with capistrano configuration.
Here comes my deploy.rb file:
set :application, “CondoWeb”
set :repository, “svn+ssh://[email protected]/home/condow09/svn/
CondoWeb”
If you aren’t deploying to /u/apps/#{application} on the target
servers (which is the default), you can specify the actual location
via the :deploy_to variable:
set :deploy_to, “/home/condow09/etc/rails_apps/CondoWeb”
set :use_sudo, false
set :checkout, “export”
If you aren’t using Subversion to manage your source code, specify
your SCM below:
set :scm, :subversion
role :app, “www.condow.com”
role :web, “www.condow.com”
role :db, “www.condow.com”, :primary => true
SSH and conection configuration
ssh_options[:port] = 7822
set :user, “condow09”
desc “Restart the app server”
task :restart, :roles => :app do
send(run_method, “”)
#send(run_method, “cd #{current_path} && mongrel_rails restart”)
end
desc “Stop the app server”
task :stop_app, :roles => :app do
send(run_method, “”)
#send(run_method, “cd #{current_path} && mongrel_rails stop”)
end
desc “Start the app server”
task :start_app, :roles => :app do
send(run_method, “”)
#send(run_method, “cd #{current_path} && mongrel_rails start -d -p #
{app_port} -e #{app_env} < /dev/null >& /dev/null”)
end
The repository works great as I configured and used successfully SVN.
But when I do a cap deploy of my website here is what I get:
C:\InstantRails-2.0\rails_apps\CondoWeb>cap deploy
- executing `deploy’
- executing `deploy:update’
** transaction: start - executing `deploy:update_code’
executing locally: “svn info svn+ssh://[email protected]/home/
condow09/svn
/CondoWeb -rHEAD”
svn: Can’t create tunnel: The system cannot find the file specified.
*** [deploy:update_code] rolling back - executing “rm -rf /home/condow09/etc/rails_apps/CondoWeb/releases/
2009040217
1940; true”
servers: [“www.condow.com”]
Password:
[www.condow.com] executing command
command finished
C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/
recipes/deploy/scm/subversion.rb:58:inquery_revision': tried to runsvn info
svn+ssh://[email protected]/home/condow09/svn/CondoWeb -rHEAD’ and
got unexpe
cted result “” (RuntimeError)
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:35:insend' from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/li b/capistrano/recipes/deploy/scm/base.rb:35:inmethod_missing’
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:63:inlocal' from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/li b/capistrano/recipes/deploy/scm/base.rb:35:inmethod_missing’
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy.rb:37:inload' from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/li b/capistrano/configuration/variables.rb:87:incall’
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/configuration/variables.rb:87:infetch' from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/li b/capistrano/configuration/variables.rb:110:inprotect’
… 38 levels…
from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/cli/execute.rb:14:inexecute' from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/ capistrano-2.5.5/bi n/cap:4 from C:/InstantRails-2.0/ruby/bin/cap:19:inload’
from C:/InstantRails-2.0/ruby/bin/cap:19
Any idea??
Olivier.