Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps: switch from Unicorn to Puma #570

Merged
merged 1 commit into from
Jan 15, 2022
Merged

Deps: switch from Unicorn to Puma #570

merged 1 commit into from
Jan 15, 2022

Conversation

mockdeep
Copy link
Collaborator

@mockdeep mockdeep commented May 1, 2021

What

This switches the server we use from Unicorn to Puma

Why

  • Puma is the blessed option on Heroku.
  • It works with Capybara out of the box.
  • Ruby 3 removes webrick from the core libraries, so we would
    need to add it as a dependency for Capybara when upgrading. Might as
    well consolidate on a single server.

Notes

I also moved pg out of the production group.

@mockdeep
Copy link
Collaborator Author

mockdeep commented May 1, 2021

Pushing up the PR, but I want to run this on Heroku for a couple of weeks before merging.

**What**

This switches the server we use from Unicorn to Puma

**Why**

* Puma is the blessed option [on Heroku][heroku].
* It [works with Capybara][capybara] out of the box.
* Ruby 3 [removes `webrick`][ruby3] from the core libraries, so we would
  need to add it as a dependency for Capybara when upgrading. Might as
  well consolidate on a single server.

**Notes**

I also moved `pg` out of the `production` group.

[heroku]: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#recommended-default-puma-process-and-thread-configuration
[capybara]: https://github.com/teamcapybara/capybara#drivers
[ruby3]: https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
@mockdeep
Copy link
Collaborator Author

I've been testing this for the better part of a year and it hasn't had any issues.

@mockdeep mockdeep merged commit f39015f into main Jan 15, 2022
@mockdeep mockdeep deleted the rf-puma branch January 15, 2022 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant