From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ezra Zygmuntowicz Newsgroups: gmane.comp.lang.ruby.mongrel.devel Subject: Re: [ANN] Unicorn: UNIX+localhost/LAN-only Mongrel fork Date: Mon, 23 Feb 2009 18:28:22 -0800 Message-ID: <409638DC-A76B-40E1-AE5C-326F2573DACC@gmail.com> References: <20090211230457.GB22926@dcvr.yhbt.net> <20090216233904.GB3198@dcvr.yhbt.net> <2A92C72C-498A-4A6E-9035-059CCF4C7371@gmail.com> <20090218004036.GA29439@dcvr.yhbt.net> <20090221151017.GA3788@untitled> <20090224010344.GG26706@dcvr.yhbt.net> Reply-To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235442732 13679 80.91.229.12 (24 Feb 2009 02:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Feb 2009 02:32:12 +0000 (UTC) To: mongrel-development-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: mongrel-development-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Tue Feb 24 03:33:27 2009 Return-path: Envelope-to: gclrmd-mongrel-development@m.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=8Fq5gHo9pj3oZWqMuzX4PYsWzJjKY2xjTu6ty215Slc=; b=DNT1np0sTMLVQn22gwHw+G8qFz60Asa8Q7nE7BsrOIGmoY77jkGGF7CNwIidleLU18 qeHDLleKgjmZNmvgmaTLSAZgCh9f0E+ObnjEYqQqK1hcgUuLOh2Ny36h7qfI5oatqu0j rOYBo3Ja7AS6A7wQxSmPNasVhhdiClI0vk2oM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=oxHaW+2gM0xfH3jh2RpD1S8KjcP0y7ga5Hro3qLdW9NYpphZWPXA1U54hk8YW1U2tj tKzmcp/rkoKu+O7dLsEr1IQvg0anQKEr9tQj80N/Dn71syZ8Y/DsaxI1MnAqtBBUoz11 Q4xtpI12I49SHrYkBcINUp2lj53w/Vysw5sEs= In-Reply-To: <20090224010344.GG26706-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> X-Mailer: Apple Mail (2.930.3) 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:96 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lbn6r-0007TO-Qe for gclrmd-mongrel-development@m.gmane.org; Tue, 24 Feb 2009 03:33:26 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BB1EF1858109; Mon, 23 Feb 2009 21:32:02 -0500 (EST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by rubyforge.org (Postfix) with ESMTP id B8F8A1858106 for ; Mon, 23 Feb 2009 21:28:26 -0500 (EST) Received: by wa-out-1112.google.com with SMTP id v33so1428711wah.3 for ; Mon, 23 Feb 2009 18:28:26 -0800 (PST) Received: by 10.114.103.1 with SMTP id a1mr1924865wac.218.1235442505957; Mon, 23 Feb 2009 18:28:25 -0800 (PST) Received: from ?192.168.1.67? (99-8-186-145.lightspeed.snfcca.sbcglobal.net [99.8.186.145]) by mx.google.com with ESMTPS id n22sm15537177pof.2.2009.02.23.18.28.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 18:28:24 -0800 (PST) List-Post: On Feb 23, 2009, at 5:03 PM, Eric Wong wrote: > Eric Wong wrote: >> Eric Wong wrote: >>> Ezra Zygmuntowicz wrote: >>>> Seems to work as advertised so far, cool stuff ;) One >>>> suggestion, folks >>>> are pretty standardized on rack and config.ru files these days. >>>> I'd much >>>> rather see unicorn look for a APP_ROOT/config.ru to load as its >>>> config >>>> file rather then the eval that returns a hash style it uses now. >>> >>> Ezra, thanks for testing and feedback. Good point about config.ru, >>> I'll try to make that change hopefully today to make it easier to >>> migrate from existing Rack apps. >> >> I just pushed out the following changes. >> >> * revamp configuration with Configurator DSL >> * Replace unicorn binary with something rackup-like >> * GNUMakefile: revamp for parallel 1.8/1.9 runs >> * test_exec: fix for temporary files not being cleaned >> * Fix+test reexec error handling on bad inputs > > > >> Basically the latest push includes config.ru compatibility and new >> test >> cases in test/exec/test_exec.rb for binary reexecution, listener >> inheritance, and reloading config files (even bad ones). >> >> This new config stuff is completely untested for any real apps and >> I'll >> need to update the examples soonish. But the new test cases pass in >> both 1.9.1 and 1.8.7, which is a good sign. > > Help... > > I'm basically a very confused person and I'm having trouble deciding > on > how/if config.ru should deal with the config file for Unicorn-specific > settings. Or if the Unicorn-specific config file should be allowed to > specify/override config.ru... > > Any ideas would be greatly appreciated, thanks! > > -- > Eric Wong Eric- I'd say just make a small dsl or just configuration object for unicorn options and let people use the dsl/object in their config.ru files. Since config.ru is just ruby you can put any ruby code in there. Have folks put their unicron config code right at the top of config.ru. Will that work? Cheers- -Ezra