2018-02-19 19:33:28 +00:00
|
|
|
# frozen_string_literal: true
|
2019-03-26 15:32:20 +00:00
|
|
|
|
2018-02-19 19:33:28 +00:00
|
|
|
set :deploy_user, 'app'
|
|
|
|
set :deploy_to, '/srv/http/sutty.kefir.red'
|
2019-04-22 19:13:39 +00:00
|
|
|
set :branch, 'kefir'
|
2018-02-19 19:33:28 +00:00
|
|
|
set :rack_env, 'production'
|
|
|
|
|
|
|
|
set :tmp_dir, "#{fetch :deploy_to}/tmp"
|
|
|
|
set :bundle_path, '/srv/http/gems.kefir.red'
|
|
|
|
|
|
|
|
set :rbenv_type, :user
|
|
|
|
set :rbenv_ruby, '2.3.6'
|
|
|
|
|
|
|
|
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
|
2019-03-26 15:32:20 +00:00
|
|
|
set :rbenv_map_bins, %w[rake gem bundle ruby rails]
|
2018-02-19 19:33:28 +00:00
|
|
|
set :rbenv_roles, :all # default value
|
|
|
|
|
|
|
|
# Evitar compilar nokogiri
|
|
|
|
set :bundle_env_variables, nokogiri_use_system_libraries: 1
|
|
|
|
|
|
|
|
server 'miso',
|
|
|
|
user: fetch(:deploy_user),
|
2019-03-26 15:32:20 +00:00
|
|
|
roles: %w[app web db]
|