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

Use unicorn (instead of webrick) in production #3387

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Use unicorn (instead of webrick) in production #3387

merged 1 commit into from
Apr 30, 2024

Conversation

knu
Copy link
Member

@knu knu commented Apr 30, 2024

Starting from Ruby 3.0, webrick is only loadable when it is required as a gem. Our Gemfile did not require it as a gem, but google-apis-core <=0.11.2 happened to have had it as a dependency, so Rails server could successfully load webrick.
#3381 upgraded google-apis-core to 0.11.3, in which version the dependency on webrick was dropped, and that made Rails server fail in trying to load webrick.

However, running webrick in production is not recommended in the first place as it is only for development and testing purposes.
By requiring unicorn-rails, unicorn becomes the default Rails server which is suitable for running in production.

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Apr 30, 2024
@knu knu merged commit 1ba2d40 into master Apr 30, 2024
14 checks passed
@knu knu deleted the unicorn-rails branch April 30, 2024 01:24
@trafico-bot trafico-bot bot added ✨ Merged Pull Request has been merged successfully and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Apr 30, 2024
@knu
Copy link
Member Author

knu commented Apr 30, 2024

If memory increase is fatal on your instance, try setting WEB_CONCURRENCY to 1. (default: 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Merged Pull Request has been merged successfully
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant