> I'm new to the Rack party. I discovered Rack this last Friday and I've
> logged some serious time in the last three days getting to know the
> code base.
>
> I'm working on something which requires the need to fork code based on
> your environment (dev vs. production). Is there an easy way to
> determine this? From what I can see, the env passed to call(env) has
> some additional 'rack.xxx' variables but nothing about the env it's
> running under.
It is not stored. It probably should be. "rack.rackup.environment"?
> Also, is 'deployment' the same as 'production' ala rails?
Yes.
--
Christian Neukirchen <chneuk...@gmail.com> http://chneukirchen.org
Thin sets ENV['RACK_ENV']. That seems like as good a place as any for
something like this.
Ryan
Thin sets ENV['RACK_ENV']. That seems like as good a place as any for
something like this.
Thin sets ENV['RACK_ENV']. That seems like as good a place as any for
something like this.
Sounds good to me.
I think it would be better to be able to specificy the environment as
part of rack build when you setup a middleware chain? So you can set
them individually per app?
Thoughts?
-Ezra
Ezra Zygmuntowicz
e...@engineyard.com
> Just wondering if this made it into the 0.9.1 releases?
No. 0.9.1 is mere fixing of the bug.