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

Switch to Puma for Rack compatibility #2744

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

nickcharlton
Copy link
Member

We're now using Rack 3, since upgrading to Rails 8.0 in #2705. There's an incompatiblity between Unicorn and Rack 3, which whilst it has a commit to fix it, hasn't been released yet.

Unfortunately it wasn't possible to bundle Unicorn directly from the repo, and building the gem locally didn't work despite a few attempts.

Instead, let's switch to Puma.

Fixes #2730.

https://stackoverflow.com/a/78594913
https://yhbt.net/unicorn.git/9d7bab0bc2211b20806d4d0289a7ea992e49a8a1/s/

We're now using Rack 3, since upgrading to Rails 8.0 in #2705. There's
an incompatiblity between Unicorn and Rack 3, which whilst it has a
commit to fix it, hasn't been released yet.

Unfortunately it wasn't possible to bundle Unicorn directly from the repo, and
building the gem locally didn't work despite a few attempts.

Instead, let's switch to Puma.

Fixes #2730.

https://stackoverflow.com/a/78594913
https://yhbt.net/unicorn.git/9d7bab0bc2211b20806d4d0289a7ea992e49a8a1/s/
@nickcharlton
Copy link
Member Author

There's no easy way to test compatibility with older Rails versions, and this is something that should only affect the demo app and documentation, so I'm not that concerned about it.

It's running now on Heroku for the prerelease and seems to be working acceptably.

@nickcharlton nickcharlton added documentation how to use administrate, examples and common usage dependencies changes or issues relating to a dependency labels Jan 6, 2025
@nickcharlton nickcharlton added this to the v1.0.0 milestone Jan 6, 2025
@nickcharlton nickcharlton merged commit 8b0e79b into main Jan 6, 2025
26 of 27 checks passed
@nickcharlton nickcharlton deleted the nc-switch-to-puma branch January 6, 2025 17:11
slickepinne added a commit that referenced this pull request Jan 9, 2025
In #2744, we moved away from Unicorn and switched to puma. While
Procfile got updated, Procfile.dev did not.
@slickepinne slickepinne mentioned this pull request Jan 9, 2025
nickcharlton pushed a commit that referenced this pull request Jan 9, 2025
In #2744, we moved away from Unicorn and switched to puma. While
Procfile got updated, Procfile.dev did not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies changes or issues relating to a dependency documentation how to use administrate, examples and common usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prerelease app is broken because of a Rack/Unicorn incompatibility
1 participant