I am trying to deploy a project that uses whenever.
But getting:
sh: whenever: not found
rolling back
executing "rm -rf /var/www/rails_apps/portal/releases/20130627122943; true"
failed: "sh -c 'cd /var/www/rails_apps/portal/releases/20130627122943 && whenever --update-crontab iconnect_portal --set environment=production --roles db'" on ...
gem 'whenever', :require => false
require "bundler/capistrano"
require 'capistrano/ext/multistage'
require "whenever/capistrano"
require "delayed/recipes"
........
Where is the problem?
I think you have to use "bundle exec" here.
set :whenever_command, "bundle exec whenever"
require "whenever/capistrano"
This is mentioned in the official documentation :) https://github.com/javan/whenever