Unicorn: How to force a single threaded boot in development

Posted Over 4 years ago. Visible to the public.

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a debugger, but do not want to overflow the console with other request like from ActionCable. Then just set the maximum number of workers to 1 and the other requests have to wait.

UNICORN_WORKERS=1 rails server
License
Source code in this card is licensed under the MIT License.
Posted by Emanuel to makandra dev (2019-10-28 09:44)