unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Hello and Rack Handler question ;-)
@ 2011-03-10 11:21 Julien Palmas
  2011-03-10 21:08 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Palmas @ 2011-03-10 11:21 UTC (permalink / raw)
  To: mongrel-unicorn

Hi list,

This is my first post here, so Hello World! ;-)

By default, `rails server` starts webrick on a new rails 3 project.
If you include Thin in the gemfile, you can run `rails s thin`to use thin instead.
Same works with mongrel.

Unfortunately, this does not work with unicorn, since it seems that Rack does not provide a handler for Unicorn by default (as it does for Thin and Mongrel).

I know I can run `unicorn` in my app root to achieve the same, but it'd be nice to stick with rails commands and have `rails s unicorn`

Can you tell me if such a handler already exists ?

++
Ju

_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Hello and Rack Handler question ;-)
  2011-03-10 11:21 Hello and Rack Handler question ;-) Julien Palmas
@ 2011-03-10 21:08 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2011-03-10 21:08 UTC (permalink / raw)
  To: unicorn list

Julien Palmas <julien.palmas@gmail.com> wrote:
> Hi list,
> 
> This is my first post here, so Hello World! ;-)

Hello Julien :>

> By default, `rails server` starts webrick on a new rails 3 project.
> If you include Thin in the gemfile, you can run `rails s thin`to use
> thin instead.
> Same works with mongrel.
> 
> Unfortunately, this does not work with unicorn, since it seems that
> Rack does not provide a handler for Unicorn by default (as it does for
> Thin and Mongrel).
> 
> I know I can run `unicorn` in my app root to achieve the same, but
> it'd be nice to stick with rails commands and have `rails s unicorn`
> 
> Can you tell me if such a handler already exists ?

No it does not.  Unicorn provides configuration options and signal
handler interfaces that Thin and Mongrel do not.  Trying to tie them to
the same interface would just cripple Unicorn users attempting to use
the generic interface and make it more confusing and difficult to
support for everyone (Rack/Rails/Unicorn developers).

There was a similar discussion here back in 2009:
http://thread.gmane.org/gmane.comp.lang.ruby.unicorn.general/130/focus=130

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-10 21:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 11:21 Hello and Rack Handler question ;-) Julien Palmas
2011-03-10 21:08 ` Eric Wong

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).