0.02
No commit activity in last 3 years
No release in over 3 years
Thin tasks for Capistrano 3.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 1.6
 Project Readme

Capistrano::Thin

Simple Thin specific tasks for Capistrano 3.x, implements the following tasks:

thin:restart
thin:start
thin:stop

Configuration

A valid Thin config file is expected under config/thin/(production|staging|whatever).yml. but you can also specify custom config file using set e.g.

set :thin_config_path, -> { "#{shared_path}/config/thin.yml" }

By default, thin will be executed with :app role. But you can assign it to a different role:

set :thin_roles, [:my_role]

Installation

Add this line to your application's Gemfile:

gem 'capistrano-thin', '~> 2.0.0'

If you use RVM on the server also add the capistrano-rvm gem.

And then execute:

$ bundle

Usage

Require in Capfile to load tasks:

require 'capistrano/thin'

And use tasks on deploy.rb, e.g.

after 'deploy:publishing', 'thin:restart'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request