Hi,

I'm really new at this and could do with some help. I am tunneling my
connection using SSHKeyChain on Mac OS X - this is set up and working
fine for ssh in a termal window.

I've created  deploy file for my hosting company (Site 5) and I'm
trying to run 'deploy:setup' when I get the following messges:

  * executing `deploy:setup'
  * executing "umask 02 && mkdir -p /home/xxxx/apps/dtw1 /home/xxxx/
apps/dtw1/releases /home/xxxx/apps/dtw1/shared /home/xxxx/apps/dtw1/
shared/system /home/xxxx/apps/dtw1/shared/log /home/xxxx/apps/dtw1/
shared/pids"
    servers: ["www.????.com"]
connection failed for: www.????.com (NoMethodError: undefined method
`ssh_type' for nil:NilClass)

My software stack is:
Capistrano v2.0.100
Rails 1.2.3
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1]

My deploy.yml:

# Necessary to run on Site5
set :use_sudo, false
set :group_writable, false

# Less releases, less space wasted
set :keep_releases, 2

# The mandatory stuff
set :application, "dtw1"
set :user, "xxxx"

set :repository,  "svn+ssh://[EMAIL PROTECTED]/home/#{user}/repos/
#{application}/trunk"

# This is related to site5 too.
set :deploy_to, "/home/#{user}/apps/#{application}"

role :app, "www.????.com"
role :web, "www.????.com"
role :db,  "www.????.com", :primary => true


# In the deploy namespace we override some default tasks and we define
# the site5 namespace.
namespace :deploy do
  desc <<-DESC
    Deploys and starts a `cold' application. This is useful if you
have not \
    deployed your application before, or if your application is (for
some \
    other reason) not currently running. It will deploy the code, run
any \
    pending migrations, and then instead of invoking `deploy:restart',
it will \
    invoke `deploy:start' to fire up the application servers.
  DESC
  # NOTE: we kill public_html so be sure to have a backup or be ok
with this application
  # being the default app for the domain.
  task :cold do
    update
    site5::link_public_html
    site5::kill_dispatch_fcgi
  end

  desc <<-DESC
    Site5 version of restart task.
  DESC
  task :restart do
    site5::kill_dispatch_fcgi
  end

  namespace :site5 do
    desc <<-DESC
      Links public_html to current_release/public
    DESC
    task :link_public_html do
      run "cd /home/#{user}; rm -rf public_html; ln -s #{current_path}/
public ./public_html"
    end

    desc <<-DESC
      Kills Ruby instances on Site5
    DESC
    task :kill_dispatch_fcgi do
      run "skill -u #{user} -c ruby"
    end
  end
end


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