Sha256: c94ca57553b8df7071de716512ee1b23dcf2b9e2182bb917236cc49b74be97cf

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 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}

<% if @generate_sidekiq %>
# Setup sidekiq, make sure we run sidekiq as our deployment user, otherwise
# it will default to root which a) is insecture and b) will lead to lots of
# strange permissions issues
set :sidekiq_service_unit_user, :system
set :sidekiq_user, fetch(:deploy_user)
<% end %>

# 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

# how many old releases do we want to keep, not much
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.0 lib/generators/capistrano/reliably_deploying_rails/templates/deploy.rb.erb