From: "Lin Jen-Shin (aka godfat 真常)" <godfat@godfat.org>
To: mongrel-unicorn@rubyforge.org
Cc: "godfat 真常" <godfat@gmail.com>
Subject: About Unicorn Rack handler
Date: Wed, 4 Nov 2009 20:37:16 +0800 [thread overview]
Message-ID: <56e58d960911040437g12cb6291rb19c2fe21cae834@mail.gmail.com> (raw)
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,
next reply other threads:[~2009-11-04 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 12:37 Lin Jen-Shin (aka godfat 真常) [this message]
2009-11-04 17:07 ` About Unicorn Rack handler Eric Wong
2009-11-05 4:43 ` Lin Jen-Shin (aka godfat 真常)
2009-11-05 4:47 ` Lin Jen-Shin (aka godfat 真常)
2009-11-05 7:29 ` Eric Wong
2009-11-05 7:28 ` Eric Wong
2009-11-05 15:13 ` Lin Jen-Shin (aka godfat 真常)
2009-11-05 23:19 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56e58d960911040437g12cb6291rb19c2fe21cae834@mail.gmail.com \
--to=godfat@godfat.org \
--cc=godfat@gmail.com \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).