unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: Hello and Rack Handler question ;-)
Date: Thu, 10 Mar 2011 13:08:01 -0800	[thread overview]
Message-ID: <20110310210801.GA8221@dcvr.yhbt.net> (raw)
In-Reply-To: <C5FE7048-F606-4533-96AE-00825DDD6A29@gmail.com>

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


      reply	other threads:[~2011-03-10 21:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 11:21 Hello and Rack Handler question ;-) Julien Palmas
2011-03-10 21:08 ` Eric Wong [this message]

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=20110310210801.GA8221@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --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).