I'm trying to get Capistrano working following the directions here:
http://www.capify.org/getting-started/rails.

My local dev workstation and the deployment target server are running
Ubuntu 7.04. The subversion repository is hosted on the deployment
target server along with Rails, Apache, Mongrel, MySQL, etc. I've been
using svn+ssh and ssh is configured to listen on a nonstandard port. I
have public key login configured for the workstation and deployment
target server.

My deploy.rb file looks like this:

-----------------------------------------------------------------
require 'mongrel_cluster/recipes'

set :application, "myapp"
set :repository, "svn+ssh://[EMAIL PROTECTED]:12345/home/user/svn-
repos/myapp/trunk"

# ssh options settings
 #set :user, 'user'
ssh_options[:port] = 12345
 #ssh_options[:verbose] = :debug
 ssh_options[:username] = 'user'
 #ssh_options[:host_key] = '/home/user/.ssh/id_dsa.pub'

set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"

set :deploy_to, "/home/user/rails_deployment/#{application}"

role :app, "host.com"
role :web, "host.com"
role :db,  "host.com", :primary => true
-----------------------------------------------------------------

I've spend the last hour or so trying many different combinations of
settings in the above file. I've tried various forms for the svn URL
and commenting and uncommenting the different ssh_options values.

No matter what I try I get output like this:

$ cap deploy:cold
[DEPRECATION] Capistrano.configuration is deprecated. Use
Capistrano::Configuration.instance instead
  * executing `deploy:cold'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
ssh: host.com:12345: Name or service not known
svn: Connection closed unexpectedly
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/user/rails_deployment/appname/releases/
20070903220707; true"
    servers: ["host.com"]
    [host.com] 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

Any help getting this working would be greatly appreciated.

Thanks,

E


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to