From 37f43a9161321586eb0cfef73a52ac4264aa56c2 Mon Sep 17 00:00:00 2001 From: Corey Date: Tue, 1 Nov 2016 12:14:26 -0700 Subject: [PATCH] Added support for Whenever gem in Capistrano --- Capfile | 4 +++- config/deploy.rb | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Capfile b/Capfile index 4667537..d89c559 100644 --- a/Capfile +++ b/Capfile @@ -5,7 +5,9 @@ require "capistrano/setup" require "capistrano/deploy" # Include tasks from other gems included in your Gemfile -# + +require 'whenever/capistrano' + # For documentation on these, see for example: # # https://github.com/capistrano/rvm diff --git a/config/deploy.rb b/config/deploy.rb index 8b4cefa..1784b50 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -17,6 +17,9 @@ set :rvm_type, :user set :rvm_ruby_version, '2.3.0' +# Set whenever for cron jobs +set :whenever_command, "bundle exec whenever" + # Default value for :scm is :git # set :scm, :git