Skip to content

Commit

Permalink
Added support for Whenever gem in Capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
c-brooks committed Nov 1, 2016
1 parent 4a6c99e commit 37f43a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 37f43a9

Please sign in to comment.