jeremyevans / roda

Routing Tree Web Toolkit
http://roda.jeremyevans.net
MIT License
2.08k stars 141 forks source link

Missing rackup on clean install #351

Closed Juksefantomet closed 9 months ago

Juksefantomet commented 9 months ago

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 commented 9 months ago

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

jeremyevans commented 9 months ago

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 commented 9 months ago

Thank you guys for quick replies!

Any specific reason for recommending puma over rackup @jeremyevans

jeremyevans commented 9 months ago

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.