Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force Puma start in single mode on Rails?

I m working on a Ruby app. My versions always started locally with Puma in single mode. For one week, Puma has automatically launched in cluster mode, it generates bugs, broadcasts don't launch anymore ... How can I force Puma to start in single mode ? I can't see such control on my config/puma.rb

like image 769
pierrecode Avatar asked Dec 22 '22 18:12

pierrecode


1 Answers

Find this line in config/puma.rb. It's usually commented.

# workers ENV.fetch("WEB_CONCURRENCY") { 2 }

If it's uncommented then just comment it or make it like below

workers ENV.fetch("WEB_CONCURRENCY") { 0 }

Then puma will start in single mode.

like image 195
Rafayet Monon Avatar answered Jan 13 '23 01:01

Rafayet Monon