Sha256: 3f9e7a4c7064f6c0d11b6942a7d2c2aabca87cb8640f9ff0d0cba4287410805a
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
# config valid for current version and patch releases of Capistrano lock "~> 3.16.0" set :application, '<%= Rails.application.class.module_parent_name.underscore %>' set :deploy_user, 'deploy' # setup repo details set :repo_url, '<%= `git config --get remote.origin.url`.delete!("\n") %>' # setup rbenv. set :rbenv_type, :system set :rbenv_ruby, '3.0.0' set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec" set :rbenv_map_bins, %w{rake gem bundle ruby rails} # setup certbot for SSL via letsencrypt set :certbot_enable_ssl, <%= @certbot_enable %> set :certbot_redirect_to_https, true set :certbot_email, "<%= @certbot_email %>" set :certbot_use_acme_staging, false # setup puma to operate in clustered mode, required for zero downtime deploys set :puma_preload_app, false set :puma_init_active_record, true set :puma_workers, 3 set :puma_systemctl_user, fetch(:deploy_user) set :puma_enable_lingering, true <% if @generate_sidekiq %> set :sidekiq_systemctl_user, fetch(:deploy_user) set :sidekiq_enable_lingering, true <% end %> # how many old releases do we want to keep set :keep_releases, 5 # Directories that should be linked to the shared folder append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', '.bundle', 'public/system', 'public/uploads' append :linked_files, 'config/database.yml', 'config/master.key' # this: # http://www.capistranorb.com/documentation/getting-started/flow/ # is worth reading for a quick overview of what tasks are called # and when for `cap stage deploy` namespace :deploy do end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-cookbook-5.0.2 | lib/generators/capistrano/reliably_deploying_rails/templates/deploy.rb.erb |