Thanks, I tried that and I still seem to get the same sort of error.
Here is my deploy.rb and deploy run after I did some substitution to
make the stuff sort of anonymous looking:


----------------------------------

set :application, "aaa-arc-website"

#set :repository,  "/opt/website-dev/website"
set :repository,  "http://svn-xxx/svn/aaa/trunk/distribution/website";

set :home_path, '/home/me'

set :deploy_via, :copy
set :copy_strategy, :export
#remote upload path /home/produser/tmp
set :copy_remote_dir, "#{home_path}/tmp"
#local /tmp/export.tar.gz path
set :copy_dir, "/tmp"
set :scm, :subversion

# 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, "/Vol/test/#{application}"

set :user, 'me'




aaa_arc_server = '165.44.177.162'

role :app, aaa_arc_server
role :web, aaa_arc_server
role :db, aaa_arc_server, :primary => true


# this code from rails cookbook:
# Deploying ehen deployment server can't access SVN:
# 
http://proquest.safaribooksonline.com/0596527314/Deploying_with_Capistrano_without_a_SCM

task :update_code, :roles => [:app, :db, :web] do
  on_rollback { delete release_path, :recursive => true }

  # this directory will store our local copy of the code
  temp_dest = "to_deploy"

  # the name of our code tarball
  tgz = "to_deploy.tgz"

  # export the current code into the above directory
  system("svn export -q #{configuration.repository} #{temp_dest}")

  # create a tarball and send it to the server
  system("tar -C #{temp_dest} -czf #{tgz} .")
  put(File.read(tgz), tgz)

  # untar the code on the server
  run <<-CMD
  mkdir -p  #{release_path}             &&
  tar -C    #{release_path} -xzf #{tgz}
  CMD

  # symlink the shared paths into our release directory
  run <<-CMD
    rm -rf #{release_path}/log #{release_path}/public/system    &&
    ln -nfs #{shared_path}/log #{release_path}/log              &&
    ln -nfs #{shared_path}/system #{release_path}/public/system
  CMD

  # clean up our archives
  run "rm -f #{tgz}"
  system("rm -rf #{temp_dest} #{tgz}")
end

=================


$ cap deploy:cold
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "svn info 
http://svnxxx/svn/aaa/trunk/distribution/website
-rHEAD"
Subcommand 'info' doesn't accept option '-r [--revision] arg'
Type 'svn help info' for usage.
*** [deploy:update_code] rolling back
  * executing "rm -rf /Vol/test/aaa-arc-website/releases/
20090604213431; true"
    servers: ["165.44.177.162"]
Password:
    [165.44.177.162] executing command
    command finished
/usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/capistrano/
recipes/deploy/scm/subversion.rb:58:in `query_revision': tried to run
`svn info http://svn-xxx/svn/aaa/trunk/distribution/website  -rHEAD'
and got unexpected result "" (RuntimeError)
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `send'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/recipes/deploy/scm/base.rb:63:in `local'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/recipes/deploy.rb:37:in `load'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/configuration/variables.rb:87:in `call'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/configuration/variables.rb:87:in `fetch'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/configuration/variables.rb:110:in `protect'
         ... 37 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/cli/execute.rb:14:in `execute'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.5.5/bin/
cap:4
        from /usr/local/bin/cap:19:in `load'
        from /usr/local/bin/cap:19
[...@cat website]$








--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to