From 3e819c7b31010eb700aa9439373b92631b27fd4f Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 5 Oct 2017 07:37:38 +0300 Subject: [PATCH] Update deployment configuration --- Capfile | 14 ++++++++++++++ config/deploy.rb | 6 ++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Capfile b/Capfile index f2f6430..d6146d0 100644 --- a/Capfile +++ b/Capfile @@ -4,6 +4,17 @@ require 'capistrano/setup' # Include default deployment tasks require 'capistrano/deploy' +# Load the SCM plugin appropriate to your project: +# +# require "capistrano/scm/hg" +# install_plugin Capistrano::SCM::Hg +# or +# require "capistrano/scm/svn" +# install_plugin Capistrano::SCM::Svn +# or +require "capistrano/scm/git" +install_plugin Capistrano::SCM::Git + # Include tasks from other gems included in your Gemfile # # For documentation on these, see for example: @@ -22,6 +33,9 @@ require 'capistrano/bundler' require 'capistrano/rails/assets' require 'capistrano/rails/migrations' require 'capistrano/puma' +install_plugin Capistrano::Puma # Default puma tasks +install_plugin Capistrano::Puma::Workers # if you want to control the workers (in cluster mode) +install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template require 'capistrano/puma/nginx' # require 'capistrano/passenger' diff --git a/config/deploy.rb b/config/deploy.rb index 65c6e19..90689c1 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,5 +1,5 @@ # config valid only for current version of Capistrano -lock '3.6.1' +lock '3.9.1' set :application, 'gauge' set :repo_url, 'https://github.com/OpenFest/gauge.git' @@ -35,13 +35,15 @@ append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bund # Default value for keep_releases is 5 # set :keep_releases, 5 -set :rvm_ruby_version, '2.3.1' +set :rvm_ruby_version, '2.4.1' set :puma_bind, ["tcp://127.0.0.1:9088"] 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" set :puma_preload_app, true +set :puma_threads, [0, 16] +set :puma_workers, 0 set :nginx_sites_available_path, "#{shared_path}" set :nginx_sites_enabled_path, "/tmp"