Skip to content

plashchynski/capistrano-crono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capistrano-crono

Gem Version

Crono integration for Capistrano

Requirements

Capistrano 3.*

Installation

Add this line to your application's Gemfile:

gem 'capistrano-crono', group: :development

And then execute:

$ bundle

Usage

Add the following to your Capfile

# Capfile
require 'capistrano/crono'

Configurable options, with defaults:

# deploy.rb
set :crono_pid, -> { File.join(shared_path, 'tmp', 'pids', 'crono.pid') }
set :crono_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
set :crono_log, -> { File.join(shared_path, 'log', 'crono.log') }
set :crono_role, -> { :app }

Support

Feel free to create issues

License

Please see LICENSE for licensing details.