cap deploy problem...

hello,

I want to run cap deploy command but i am gettion following error..

* executing `deploy'   * executing `deploy:update' ** transaction: start   * executing `deploy:update_code'     executing locally: "svn info http://svn.ecomm.pragtech.co.in/ecomm -rHEAD"   * executing "svn checkout -q -r65 http://svn.ecomm.pragtech.co.in/ecomm /u/apps/ecomm/releases/20091203063655 && (echo 65 > /u/apps/ecomm/ releases/20091203063655/REVISION)"     servers: ["application"] *** [deploy:update_code] rolling back   * executing "rm -rf /u/apps/ecomm/releases/20091203063655; true"     servers: ["application"] ** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: application (SocketError: getaddrinfo: Name or service not known) connection failed for: application (SocketError: getaddrinfo: Name or service not known)

Might need to see your deploy.rb file, but I would look where you define the servers. It appears it is looking for the the host 'application' and cannot find it.

Darian Shimy

My deploy.rb file contains..

set :application, "application name" set :repository, "http://…" set :applicationdir, "/root/#{application}" # The standard Dreamhost setup

# 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, applicationdir

# If you aren't using Subversion to manage your source code, specify # your SCM below: set :scm, :subversion

role :app, "application" role :web, "application" role :db, "application", :primary => true

Can you tell me the configuration of deploy.rb is right..

You need to change the following lines:

role :app, "application" role :web, "application" role :db, "application", :primary => true

Replace the application with the name of the host or IP Address.

Darian Shimy