Forum: Ruby on Rails Capistrano Error undefined method 'local'

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
zdennis (Guest)
on 2006-03-09 04:22
(Received via mailing list)
I get an error after running Capistrano deploy...

zdennis@silver:~/source/projects/$ rake deploy
(in /home/zdennis/source/projects/
     loading configuration
     loading configuration ./config/deploy.rb
   * executing task deploy
  ** transaction: start
   * executing task update_code
   * determining current_branch...
*** [update_code] transaction: rollback
   * [update_code] rolling back
   * executing "rm -rf /home/zdennis/myapp/releases/20060309021856"
     servers: [""]
SEnter password for /home/zdennis/.ssh/id_dsa:
Enter password for /home/zdennis/.ssh/id_dsa:
     [] executing command
     command finished
rake aborted!
undefined method `local' for #<Capistrano::Configuration:0xb7405074>

I don't have any 'local' variables defined in y deploy.rb.... I am sure
this is something silly I am
doing wrong. Any ideas? Thanks,

Jamis B. (Guest)
on 2006-03-09 07:03
(Received via mailing list)
This is something I thought I had fixed, but apparently not. It
happens when using the CVS scm module.

The 'local' variable should default to '.', and is used to locate the
local copy of your project so that the current revision can be
determined. Just do:

   set :local, "."

in your deploy.rb, and you should be fine.

Sorry about that.

- Jamis
This topic is locked and can not be replied to.