No commit activity in last 3 years
No release in over 3 years
Run background process for capistrano.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0
>= 0

Runtime

>= 3.0.0
>= 0.1.1
 Project Readme

capistrano-background

Run background process for capistrano.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-background', group: :development
gem 'terminate'

And then execute:

bundle

Or install it yourself as:

gem install capistrano-background

Usage

Require in your Capfile

require 'capistrano/background'

Add your background processes.

set :background_processes, {
  :scheduler => {
    :execute => [:rake, 'scheduler'],
    :timeout => 60 # kill process after waiting this time (seconds)
  }
}

It will run rake scheduler in background when deploy. You can also use command:

cap production background:start
cap production background:stop
cap production background:restart

License

The gem is available as open source under the terms of the MIT License.

Contact

The project's website is located at https://github.com/emn178/capistrano-background
Author: emn178@gmail.com