Tweak the deployment
This commit is contained in:
parent
1c61e45146
commit
36c61cc531
1
Capfile
1
Capfile
|
@ -22,6 +22,7 @@ require 'capistrano/bundler'
|
||||||
require 'capistrano/rails/assets'
|
require 'capistrano/rails/assets'
|
||||||
require 'capistrano/rails/migrations'
|
require 'capistrano/rails/migrations'
|
||||||
require 'capistrano/puma'
|
require 'capistrano/puma'
|
||||||
|
require 'capistrano/puma/nginx'
|
||||||
# require 'capistrano/passenger'
|
# require 'capistrano/passenger'
|
||||||
|
|
||||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||||
|
|
|
@ -26,7 +26,7 @@ set :deploy_to, '/home/barf/gauge'
|
||||||
set :linked_files, fetch(:linked_files, []).push('config/secrets.yml')
|
set :linked_files, fetch(:linked_files, []).push('config/secrets.yml')
|
||||||
|
|
||||||
# Default value for linked_dirs is []
|
# Default value for linked_dirs is []
|
||||||
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')
|
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'db')
|
||||||
|
|
||||||
# Default value for default_env is {}
|
# Default value for default_env is {}
|
||||||
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
||||||
|
@ -36,7 +36,7 @@ set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', '
|
||||||
|
|
||||||
set :rvm_ruby_version, '2.2.2'
|
set :rvm_ruby_version, '2.2.2'
|
||||||
|
|
||||||
set :puma_bind, ["tcp://127.0.0.1:9088"]
|
set :puma_bind, ["unix://#{shared_path}/tmp/sockets/puma.sock"]
|
||||||
set :puma_init_active_record, true
|
set :puma_init_active_record, true
|
||||||
set :puma_access_log, "#{shared_path}/log/puma_access.log"
|
set :puma_access_log, "#{shared_path}/log/puma_access.log"
|
||||||
set :puma_error_log, "#{shared_path}/log/puma_error.log"
|
set :puma_error_log, "#{shared_path}/log/puma_error.log"
|
||||||
|
|
Loading…
Reference in New Issue