sam / harbor

Harbor is a Ruby Web Framework.
https://github.com/sam/harbor
MIT License
3 stars 6 forks source link

Decide on a default web-server for MRI19 #48

Open sam opened 12 years ago

sam commented 12 years ago

harbor server will start up Jetty under JRuby. What will it do under MRI19?

Since the JRuby version won't use a config.ru, I'd like to be consistent and get rid of that for MRI as well. I don't think that should be too hard, but what server should we bundle by default?

Bauerpauer commented 12 years ago

Webrick?

On Mar 9, 2012, at 12:02 PM, Sam Smootreply@reply.github.com wrote:

harbor server will start up Jetty under JRuby. What will it do under MRI19?

Since the JRuby version won't use a config.ru, I'd like to be consistent and get rid of that for MRI as well. I don't think that should be too hard, but what server should we bundle by default?


Reply to this email directly or view it on GitHub: https://github.com/sam/harbor/issues/48

sam commented 12 years ago

But you wouldn't have the same development-to-production ability then.

Maybe so though. I was looking through the current MRI/1.9 web-servers the other day and it's still basically Passenger or Unicorn. Nothing that does Evented+ThreadPools. It's still all fixed-number-of-processes stuff.

So we'll probably have to have a lib/harbor/adapters/rack or something.

Yeah. Webrick for now then I guess and we'll just have a config.ruavailable for Rack users that throws a warn if you try to use it under JRuby and prompts you to just run harbor server instead.

fgrehm commented 12 years ago

Nowadays I tend to use unicorn for development, but because of other reasons we end up deploying to Passenger Not sure if it is what you are looking for but I just found out about this guy http://postrank-labs.github.com/goliath/ which works on all platforms