Update deployment configuration
This commit is contained in:
parent
9d5ea3714d
commit
3e819c7b31
14
Capfile
14
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'
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue