Integrate Whenever with Capistrano V3
mainTo automate crontab updates during deployment with Capistrano V3:
- Add
require "whenever/capistrano"to yourCapfile. - Configure variables in
config/deploy.rb. Usedeferto ensure variables like:stageare evaluated at runtime.
Common configuration keys:
whenever_identifier: Used to namespace crontab entries (e.g.,#{fetch(:application)}_#{fetch(:stage)}).whenever_environment: Sets the environment (e.g.,stageorproduction).whenever_load_file: Path to a custom schedule file.