From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.mongrel.devel Subject: OldRails Rack handler added to Unicorn Date: Mon, 23 Mar 2009 14:57:00 -0700 Message-ID: <20090323215700.GA20926@dcvr.yhbt.net> Reply-To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237845431 25638 80.91.229.12 (23 Mar 2009 21:57:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Mar 2009 21:57:11 +0000 (UTC) To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Mon Mar 23 22:58:29 2009 Return-path: Envelope-to: gclrmd-mongrel-development@m.gmane.org Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.mongrel.devel:102 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1LlsA8-0007kF-LT for gclrmd-mongrel-development@m.gmane.org; Mon, 23 Mar 2009 22:58:28 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id AE7D81978565; Mon, 23 Mar 2009 17:57:03 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id E1DF719784BE for ; Mon, 23 Mar 2009 17:57:01 -0400 (EDT) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id E84131F5D0; Mon, 23 Mar 2009 21:57:00 +0000 (UTC) List-Post: Hi all, I've committed support to Unicorn for old versions of Rails that didn't support Rack. I think it could be useful for Mongrel 2 (or any other server) as well: http://git.bogomips.org/cgit/unicorn.git/commit/?id=0b095ea72 [1] or just fetch/clone git://git.bogomips.org/unicorn.git The bin/unicorn_rails code is itself a mess, but cleaning it up is on my ever growing TODO list along with writing automated tests for them. It actually seems Rails 2.2.0+ could be Racked, but only 2.3+ requires Rack. (I'll actually try to read the changelogs at some point but the long lines are driving me nuts). I'll probably test some ancient Rails apps I have lying around on them later this week, but I did manage to start and run an ancient Rails 1.2.3 app I had lying around with Unicorn and it appeared to run fine (static file serving and all). [1] - in case that short URL ever becomes ambiguous: http://git.bogomips.org/cgit/unicorn.git/commit/?id=0b095ea72fb849682a1185a626eef247b5afc1cd -- Eric Wong