Sha256: 31031ad2982d923ab3a10b30a81b8a3101603bbd46002b0a00fc7fc3dd6b5db9

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# config valid only for current version of Capistrano
lock '3.4.0'

set :application, '<%= app_name.dasherize %>'
set :user, 'deploy'
# set :repo_url, 'git@github.com:organization/repository.git'

set :rbenv_ruby, File.read('.ruby-version').strip
set :rbenv_type, :user
set :rbenv_bin_path, '/home/deploy/.rbenv/shims'
set :rbenv_prefix, -> { "#{fetch(:rbenv_path)}/bin/rbenv exec dotenv" }

set :nginx_domains, '<%= app_name.dasherize %>.com.br'
set :nginx_template, "#{stage_config_path}/nginx.conf.erb"
set :app_server_port, 3000

set :rollbar_token, ENV['ROLLBAR_TOKEN']
set :rollbar_env, proc { fetch :stage }
set :rollbar_role, proc { :db }

# Always deploy the current branch.
set :branch, `git rev-parse --abbrev-ref HEAD`.chomp

set :deploy_to, '/home/deploy/<%= app_name.dasherize %>'
set :log_level, :info

set :linked_dirs, fetch(:linked_dirs, []).push('log',
                                               'tmp/pids',
                                               'tmp/cache')

set :linked_files, %w(.env)

set :default_env, path: '/home/deploy/.rbenv/shims:$PATH'

after 'deploy:updated', 'newrelic:notice_deployment'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kratos-1.1.0 templates/deploy_config.rb.erb