DEV Community

A Better Way to Deploy Rails app on Heroku

Regular 🍟 on April 19, 2021

Time: 2021-04-03 23:44 UTC+8:00 Author: vonhyou This article introduces the professional way of deploying Rails app on Heroku. Force ...
Collapse
 
juanvqz profile image
Juan Vasquez

Why is better puma for heroku?

Collapse
 
vonhyou profile image
Regular 🍟

It depends, according to the documentation:

... Puma is a webserver that competes with Unicorn and allows you to handle concurrent requests. Puma uses threads, in addition to worker processes, to make more use of available CPU. You can only utilize threads in Puma if your entire code-base is thread safe. Otherwise, you can still use Puma, but must only scale-out through worker processes.

Link: Deploying Rails Applications with the Puma Web Server

Collapse
 
juanvqz profile image
Juan Vasquez

Thanks!
I have been using puma because it's the "default" way in Heroku, at least for me it's super easy to use it.