Try using the "command" instead of a rake. My rake is in / usr / local / bin, and I cannot figure out how to make it work. So, here is an example command instead of in sched.rb:
every 5.minutes do
command "cd " + `pwd`.chomp + " && RAILS_ENV=#{environment} /usr/local/bin/rake rakefile:rakemethod"
end
, . , "when -update_crontab --set environment = beta", schedule.rb.
capistrano , capistrano (. lib dirs ). when_environment capistrano script.
, , . , RAILS_ENV = # {environment}, . , , script.
rake, /usr/local/bin/rake! - ?