Sha256: df318f6b91e231cada209d409e47305f9b705f41da64f8b571794b628858abf8

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

set :stage, :production
set :branch, "master"

# This is used in the Nginx VirtualHost to specify which domains
# the app should appear on. If you don't yet have DNS setup, you'll
# need to create entries in your local Hosts file for testing.
set :nginx_server_name, '<%= @production_hostname %>'

# used in case we're deploying multiple versions of the same
# app side by side. Also provides quick sanity checks when looking
# at filepaths
set :full_app_name, "#{fetch(:application)}_#{fetch(:stage)}"

<% if @generate_sidekiq %>
# Name sidekiq systemd service after the app and stage name so that
# multiple apps and stages can co-exist on the same machine if needed
set :sidekiq_service_unit_name, "sidekiq_#{fetch(:full_app_name)}"
<% end %>

server '<%= @production_server_address %>', user: 'deploy', roles: %w{web app db}, primary: true

set :deploy_to, "/home/#{fetch(:deploy_user)}/apps/#{fetch(:full_app_name)}"

# dont try and infer something as important as environment from
# stage name.
set :rails_env, :production

# whether we're using ssl or not, used for building nginx
# config file
set :enable_ssl, false

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capistrano-cookbook-5.0.2 lib/generators/capistrano/reliably_deploying_rails/templates/production.rb.erb
capistrano-cookbook-5.0.1 lib/generators/capistrano/reliably_deploying_rails/templates/production.rb.erb