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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request