Config deploy for production

This commit is contained in:
Jesse C. Fisher 2019-10-29 06:43:22 -07:00
parent 22d1f90684
commit 0fd46f5da2

View File

@ -27,8 +27,6 @@ set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/sys
set :rbenv_type, :user # or :system, depends on your rbenv setup
set :rbenv_ruby, '2.6.0'
set :rbenv_custom_path, "/home/jesse/.rbenv/"
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_custom_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_custom_path)}/bin/rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all # default value
@ -38,8 +36,10 @@ set :default_env, {
}
# set :keep_releases, 5
set :nginx_path, '/etc/nginx' # directory containing sites-available and sites-enabled
set :nginx_template, 'config/deploy/nginx_conf.erb' # configuration template
set :rbenv_custom_path, "/home/jesse/.rbenv/"
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_custom_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_custom_path)}/bin/rbenv exec"
# set :nginx_path, '/etc/nginx' # directory containing sites-available and sites-enabled
# set :nginx_template, 'config/deploy/nginx_conf.erb' # configuration template
#set :nginx_server_name, 'example.com' # optional, defaults to :application
#set :nginx_upstream, 'example-app' # optional, defaults to :application
# set :nginx_listen, 80 # optional, default is not set