Skip to content

empowerunited/capistrano-thin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capistrano::Thin

Installation

Add this line to your application's Gemfile:

gem 'capistrano-thin', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-thin

Usage

add in your deploy.rb or production.rb

require 'capistrano-thin'

configure

set(:thin_use_unix, 'false')
# uncomment this for sockets
# set(:thin_socket, "#{shared_path}/sockets/yatoto.sock")
#
# comment this if you want unix sockets
set(:thin_address, '127.0.0.1')
set(:thin_address, '30000')


set(:thin_tag, 'thin_yourwebsite') # for ps aux
set(:thin_user, 'deployment')
set(:thin_group, 'deployment')
set(:thin_socket, "#{shared_path}/sockets/yourwebsite.sock") # the name of the socket
set(:thin_threaded , 'true')
set(:thin_no_epoll, 'true')
set(:thin_pid, 'tmp/pids/thin.pid')
set(:thin_log, 'log/staging.log')
set(:thin_max_conns, 1024)
set(:thin_max_persistent_conns, 512)
set(:thin_servers, 2)

Contributing

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

About

Thin deployment tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%