Pixelforce Recipes implements Capistrano recipes for Unicorn & Ngnix, Sidekiq deployment.
Add this line to your application's Gemfile:
gem 'pixelforce_recipes'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pixelforce_recipes
add below code to deploy.rb
require 'pixelforce_recipes'
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pixelforce_recipes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The recipes for capistrano3 with supervisor support.
Please use process:supervisor:task
to invoke it.
They relied on some capistrano plugins for some variables
- rvm for
rvm_ruby_version
Tweak some option for supervisor, the following value is default
set :autostart, 'true'
set :autorestart, 'true'
set :logfile_maxbytes, '1GB'
set :logfile_backups, '10'
Relied on unicornherder for supervisor monitoring.
Get rid of capistrano-puma, and now generate puma config itself.
set :puma_threads, [0, 1]
set :puma_workers, 2
Please use process:sysvinit:task
to invoke it.
The gem is available as open source under the terms of the MIT License.