From 36c61cc5311f78c03c232d00a0987154a8cfb91c Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 6 Oct 2015 16:05:55 +0300 Subject: [PATCH] Tweak the deployment --- Capfile | 1 + config/deploy.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Capfile b/Capfile index ba228da..f2f6430 100644 --- a/Capfile +++ b/Capfile @@ -22,6 +22,7 @@ require 'capistrano/bundler' require 'capistrano/rails/assets' require 'capistrano/rails/migrations' require 'capistrano/puma' +require 'capistrano/puma/nginx' # require 'capistrano/passenger' # Load custom tasks from `lib/capistrano/tasks` if you have any defined diff --git a/config/deploy.rb b/config/deploy.rb index 25b404c..ed5d318 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -26,7 +26,7 @@ set :deploy_to, '/home/barf/gauge' set :linked_files, fetch(:linked_files, []).push('config/secrets.yml') # 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 {} # 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 :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_access_log, "#{shared_path}/log/puma_access.log" set :puma_error_log, "#{shared_path}/log/puma_error.log"