usar jemalloc

This commit is contained in:
f 2020-03-02 12:12:25 -03:00
parent 539ab346d5
commit 5fa6541b25
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -5,7 +5,8 @@ lock '~> 3.12.0'
set :application, 'lumi' set :application, 'lumi'
set :repo_url, 'https://0xacab.org/pip/miniloom/api.git' set :repo_url, 'https://0xacab.org/pip/miniloom/api.git'
set :deploy_to, '/srv/http/api.lumi.partidopirata.com.ar/deploy' 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_flags, '--deployment'
set :bundle_jobs, 1 set :bundle_jobs, 1
set :bundle_env_variables, { nokogiri_use_system_libraries: 1 } set :bundle_env_variables, { nokogiri_use_system_libraries: 1 }
@ -15,7 +16,8 @@ set :ssh_options, verify_host_key: :always
set :default_env, { set :default_env, {
rails_env: 'production', rails_env: 'production',
rails_master_key: File.read('config/master.key'), 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' after 'deploy:published', 'pumx:stop'