[PATCH] set RACK_ENV on startup
normalperson at yhbt.net
Tue Nov 3 22:06:35 EST 2009
Wayne Larsen <wayne at larsen.st> wrote:
> 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`?
Does anything use/depend on it? `unicorn' is modeled after `rackup' and
I don't think it's a good idea to expose things if nothing uses it
(rackup does not set it, either).
RAILS_ENV is an accepted standard for Rails applications and there are
plenty of things that already depend on it.
More information about the mongrel-unicorn