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

Missing rackup on clean install #351

Closed
Juksefantomet opened this issue Feb 1, 2024 · 4 comments
Closed

Missing rackup on clean install #351

Juksefantomet opened this issue Feb 1, 2024 · 4 comments

Comments

@Juksefantomet
Copy link

Hello,

I initialized a new roda project using Gemfile:

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem 'roda'
gem 'roda-http-auth'
gem 'rack-cors'
gem 'pg'
gem 'dotenv'
gem "aws-sdk-s3"

normally i would never have to specify rackup as a gem dependency.

Now i had to add gem 'rackup'

Is this a deliberate change?

@janko
Copy link

janko commented Feb 1, 2024

That's change in Rack 3, the rackup command has been extracted into a separate gem.

@jeremyevans
Copy link
Owner

As mentioned, this is expected in Rack 3, not related to Roda. If you specify a Rack version < 3 in your Gemfile, then Rack 2 will be installed, and rackup will be available. You may consider using puma instead of rackup.

@Juksefantomet
Copy link
Author

Thank you guys for quick replies!

Any specific reason for recommending puma over rackup @jeremyevans

@jeremyevans
Copy link
Owner

Rackup is not a server itself, it just tries to find a server and execute it. I think puma is rackup's first choice. Unless you have specific needs, puma is the best choice for a Ruby webserver these days.

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

No branches or pull requests

3 participants