A
A
Anton Ivanov2017-11-09 07:23:53
Ruby on Rails
Anton Ivanov, 2017-11-09 07:23:53

[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

2 answer(s)
A
Anton Ivanov, 2017-11-10
@Fly3110

Found a solution. view files are placed
in each file, you can use your own variables from deploy.rb lib/capistrano/templatespuma-#{host}.rb

K
Karim Kyatlottyavi, 2017-11-09
@constXife

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 question

Ask a Question

731 491 924 answers to any question