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