Croner
An plugin that manage cron jobs each applications and servers.
Read this in other languages: 日本語
Installation
Add this line to your application's Gemfile:
gem 'croner'
And then execute:
$ bundle
And then run initial settings:
$ rails g croner:install
Configure
Edit the /config/initializers/croner.rb
file and customize following settings.
enable_backup
Settings that save backup file.
backup_path
Backup file's path.
keep_backups
Num of keep backup files.
Usage
Make config/croner/hosts/[hostname]
and run task croner:update
.
Capistrano integration
In your config/deploy.rb
or Capfile
file:
require "croner/capistrano"
And if you want to change role, append your config/deploy.rb
file:
croner_roles %w(web db)
License
The gem is available as open source under the terms of the MIT License.