Topic: Capistrano 2.0 rake: command not found

Hi,

So, I am trying my first deployment with Capistrano.  The deploy is to the same box as dev, so I know rake is on the box, but when I run deploy:cold, I get

executing "cd /Users/me/rails_prod/myapp/releases/20071002215652; rake RAILS_ENV=production  db:migrate"
    servers: ["homemac"]
    [homemac] executing command
** [out :: homemac] sh: line 1: rake: command not found
    command finished

I have tried putting the path to rake in the ~/.ssh/environment and I am setting the PATH in .bash_login, so I am at a loss.

Any suggestions?

Thanks,
Ruprict

Re: Capistrano 2.0 rake: command not found

So, I have a non-standard rake install location.   Putting

set :rake, "/usr/local/bin/rake"

in my deploy.rb fixed it up.

Re: Capistrano 2.0 rake: command not found

Try this,

gem update rake

This will update your rake and then in the Rakefile add the following code above the require 'rake'

require 'rake/dsl_definition'
require 'rake'

Hope this helps