Capistrano 2 error with DB server

Hi all
I am trying to set up capistrano and it is failing when it tries to
call an svn command on the db server, where svn is not installed.
Here is the error message.

============================================================================
[192.168.1.22] executing command
[myserver.com] executing command
** [out] sh: svn: command not found
command finished
*** [deploy:update_code] rolling back

  • executing “rm -rf /onetruth/releases/20071012164314; true”
    servers: [“192.168.1.22”, “myserver.com”]
    [192.168.1.22] executing command
    [myserver.com] executing command
    command finished
    command “svn checkout -q -r7 svn://192.168.1.22 /onetruth/releases/
    20071012164314 && (echo 7 > /onetruth/releases/20071012164314/
    REVISION)” failed on myserver.com
    =========================================================================
    =========================================================================

and my deploy.rb looks like this

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

set :application, “onetruth”
set :repository, “svn://192.168.1.22”

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, “/var/www/#{application}”

If you aren’t using Subversion to manage your source code, specify

your SCM below:

set :scm, :subversion

set :user,“administrator”
set :use_sudo, true
role :app, “192.168.1.22”
role :web, “192.168.1.22”
role :db, “myserver.com”, :primary => true
set :deploy_to, “/onetruth”

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

I do not know why capistrano is looking for svn on myserver.com but id
anyone can help I would really appreciate it

White W.

White W. wrote:

*** [deploy:update_code] rolling back

via the :deploy_to variable:

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

I got caught by this one. If you add :no_release => true to those roles
you don’t want capistrano to attempt to deploy to. So:

role :db, “myserver.com”, :primary => true, :no_release => true

Hope this helps

Chris

Autopendium :: Stuff about old cars
http://autopendium.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs