From 5fa6541b2561290fe7a2248b169ee79c59aa096f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 2 Mar 2020 12:12:25 -0300 Subject: [PATCH] usar jemalloc --- config/deploy.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 5a66322..e49e88c 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -5,7 +5,8 @@ lock '~> 3.12.0' set :application, 'lumi' set :repo_url, 'https://0xacab.org/pip/miniloom/api.git' set :deploy_to, '/srv/http/api.lumi.partidopirata.com.ar/deploy' -append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'public/system', 'data', '.bundle', 'docs' +append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', + 'public/system', 'data', '.bundle', 'docs' set :bundle_flags, '--deployment' set :bundle_jobs, 1 set :bundle_env_variables, { nokogiri_use_system_libraries: 1 } @@ -15,7 +16,8 @@ set :ssh_options, verify_host_key: :always set :default_env, { rails_env: 'production', rails_master_key: File.read('config/master.key'), - web_concurrency: '1' + web_concurrency: '1', + ld_preload: '/usr/lib/libjemalloc.so' } after 'deploy:published', 'pumx:stop'