Answer the question
In order to leave comments, you need to log in
[Capistrano] How to set different puma settings for different servers?
Hello.
My application is deployed on 2 servers. They are different and you can give more threads / workers on one puma.
How can this be done in the most beautiful way? I am using the capistrano-puma plugin.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Found a solution. view files are placed
in each file, you can use your own variables from deploy.rb lib/capistrano/templates
puma-#{host}.rb
Add a 'config/puma.rb' entry in the config/deploy.rb file in the linked files section and on each server you will need to add it to the $deploy_root/shared/config/puma.rb folder with any settings you want.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question