Hi,
A couple days ago, I was trying to run Unicorn for Ramaze,
and found that `Unicorn.run' didn't share the same interface
with other Rack handlers, i.e. `options[:Host]' and `options[:Port]'
Because of this, I can't just use:
Rack::Handler.register('unicorn', 'Unicorn')
And invoke this:
Ramaze.start(:adapter => 'unicorn', :port => 8080)
To address this, I added a simple wrapper in
Innate (which is the core of Ramaze):
http://github.com/godfat/innate/commit/9d607f41fdeeca366a9a07155e685ae2605c7025
In short, simply hack the config to:
{:listeners => ["#{config[:Host]}:#{config[:Port]}"]}
Should we adapt to this interface in Unicorn::Configurator,
or provide an additional Rack handle to adapt to this,
or maintain this Rack handler in Rack repository, just like the others?
http://github.com/rack/rack/tree/master/lib/rack/handler
I'm looking forward to your opinion, many thanks!
cheers,
_______________________________________________
mongrel-unicorn mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-unicorn