From: Wayne Larsen <wayne@larsen.st>
To: mongrel-unicorn@rubyforge.org
Subject: [PATCH] set RACK_ENV on startup
Date: Tue, 3 Nov 2009 19:24:16 -0600 [thread overview]
Message-ID: <C4216E7A-A91B-4712-93EF-0687668E9ABE@larsen.st> (raw)
Most stupid patch ever, but is there a reason not to set RACK_ENV on
startup with `unicorn`, as RAILS_ENV is set with `unicorn_rails`?
Thanks
Wayne
---
bin/unicorn | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/bin/unicorn b/bin/unicorn
index 0fed11e..9967f87 100755
--- a/bin/unicorn
+++ b/bin/unicorn
@@ -58,6 +58,7 @@ opts = OptionParser.new("", 24, ' ') do |opts|
opts.on("-E", "--env ENVIRONMENT",
"use ENVIRONMENT for defaults (default: development)") do |
e|
+ ENV['RACK_ENV'] = e
env = e
end
--
1.6.0.1
next reply other threads:[~2009-11-04 1:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 1:24 Wayne Larsen [this message]
2009-11-04 3:06 ` [PATCH] set RACK_ENV on startup Eric Wong
2009-11-04 3:51 ` Wayne Larsen
2009-11-04 5:29 ` Eric Wong
2009-11-04 17:13 ` Eric Wong
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=C4216E7A-A91B-4712-93EF-0687668E9ABE@larsen.st \
--to=wayne@larsen.st \
--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).