This gem provides a solid basic rails stack (might support more stuff in the future) for Capistrano 3.x
Add this to your application's Gemfile:
gem "capistrano", "~> 3.1"
gem "capistrano-foundation", github: "agendrix/capistrano-foundation"
And then execute:
$ bundle install
# Capfile
require 'capistrano/foundation'
# Or if you want to pick specific tasks
require 'capistrano/foundation/nginx'
...
Configurable options:
set :env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
set :force_www_url, "www.domain.com"
set :server_name, "www.domain.com"
set :ssl_certificate_path, nil
set :ssl_certificate_key_path, nil
set :puma_init_name, "#{fetch(:foreman_app_name)}-web"
set :puma_pid_path, "#{shared_path}/tmp/pids/puma.pid"
set :sidekiq_init_name, "#{fetch(:foreman_app_name)}-worker"
set :sidekiq_pid_path, "#{shared_path}/tmp/pids/sidekiq.pid"
- 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
Agendrix is a team of passionate on a mission to create more pleasant and productive workplaces with innovative software, an exceptional team and unparalleled customer service.
This project is © Agendrix. It is free software and may be redistributed under the terms specified in the LICENSE file.