From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.140.128.1 with SMTP id a1cs94890rvd; Thu, 1 Apr 2010 00:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of 3aUi0SwwICrEefidRcgVijfepYSk.eVkiRTb-UVmVcXffXcVXiflgj.Tfd@groups.bounces.google.com designates 10.91.84.19 as permitted sender) client-ip=10.91.84.19; Authentication-Results: mr.google.com; spf=pass (google.com: domain of 3aUi0SwwICrEefidRcgVijfepYSk.eVkiRTb-UVmVcXffXcVXiflgj.Tfd@groups.bounces.google.com designates 10.91.84.19 as permitted sender) smtp.mail=3aUi0SwwICrEefidRcgVijfepYSk.eVkiRTb-UVmVcXffXcVXiflgj.Tfd@groups.bounces.google.com; dkim=pass header.i=3aUi0SwwICrEefidRcgVijfepYSk.eVkiRTb-UVmVcXffXcVXiflgj.Tfd@groups.bounces.google.com Received: from mr.google.com ([10.91.84.19]) by 10.91.84.19 with SMTP id m19mr1108807agl.42.1270106219488 (num_hops = 1); Thu, 01 Apr 2010 00:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:date:from:to:subject:message-id :references:mime-version:in-reply-to:user-agent :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-disposition; bh=KSEHNVlRHsFaqMh7vR+VMCqF1MwbGxtEk/WRQaPVe+A=; b=ojsLoM+yGBIhZKkUrmvEqZVqC96JRPUrTTeDb/Fj81L4gG6wNC6c6rbXMtR5rJIeX6 eBOAvFadGLwx5xbifrFsMdjMh1vbo/l/NqwfjpgOj+ptaULR353vVYvaneR/NjWpfVpr S1LuyW1xfTaFh3x91v+7tt1GHhWRe3YgB78Bk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:subject:message-id:references :mime-version:in-reply-to:user-agent :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :x-thread-url:x-message-url:sender:list-subscribe:list-unsubscribe :content-type:content-disposition; b=MHbUkiVDXY76n8fbd/ytp2WU60y4MZ4QXKnRaqkxRIEVVJTEOe7BBaxUgSxCfzufeh gZvFNTyH2iN4hWakgSbk0kNEiHpu1x3xntZa/EB0ImX9oy16NAYDqkZH+j6hEPich68A JwcVpIoInuqT7hf7jIEY8Q5FjYt7Kg2Vhc5Q8= Received: by 10.91.84.19 with SMTP id m19mr126823agl.42.1270106217849; Thu, 01 Apr 2010 00:16:57 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.231.50.148 with SMTP id z20ls306853ibf.2.p; Thu, 01 Apr 2010 00:16:55 -0700 (PDT) Received: by 10.231.176.16 with SMTP id bc16mr684533ibb.16.1270106215288; Thu, 01 Apr 2010 00:16:55 -0700 (PDT) Received: by 10.231.176.16 with SMTP id bc16mr684531ibb.16.1270106215180; Thu, 01 Apr 2010 00:16:55 -0700 (PDT) Return-Path: Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by gmr-mx.google.com with ESMTP id 25si1141425iwn.0.2010.04.01.00.16.54; Thu, 01 Apr 2010 00:16:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) client-ip=64.71.152.64; Received: from localhost (dcvr.yhbt.net [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPSA id 9DE341F739; Thu, 1 Apr 2010 07:16:51 +0000 (UTC) Date: Thu, 1 Apr 2010 07:16:50 +0000 From: Eric Wong To: rack-devel@googlegroups.com Subject: Re: ENV["RACK_ENV"] is not set on startup [rack/rack GH-11] Message-ID: <20100401071650.GB30070@dcvr.yhbt.net> References: <87hbnwr4pu.fsf@gmail.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of normalperson@yhbt.net designates 64.71.152.64 as permitted sender) smtp.mail=normalperson@yhbt.net X-Original-Sender: normalperson@yhbt.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/838c8abdaae55bb8 X-Message-Url: http://groups.google.com/group/rack-devel/msg/b91a178234a828ff Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline James Tucker wrote: > The possible disparity here is that we use "deployment" and "none" > traditionally (with Yehudas Rack::Server deprecating "none" to be > implicit instead). I think the best option is to map "production" to > "deployment" for the time being, and maybe look at deprecating > "deployment" in say, a year, if at all (don't really see why it needs > to be removed tbh, other than neatness). Joshua Peek wrote: > +1 I changed Rails to prefer RACK_ENV over RAILS_ENV a while back. What happens when Rails sees "none" or an empty value? I've always preferred to start Rack with "none"/empty since I didn't like the Rack::CommonLogger defaulting to $stderr which I believe should be reserved for more critical messages. I also prefer Clogger instead of CommonLogger for access logs. With RACK_ENV != RAILS_ENV, it was easy to deploy a Rails app without the RACK_ENV=deployment defaults (which I don't want) conflicting with the RAILS_ENV=production defaults (which I do want). I guess those apps will have to be reconfigured to use RAILS_ENV=none (or RAILS_ENV=something_rack_will_never_understand :) -- Eric Wong -- To unsubscribe, reply using "remove me" as the subject.