motion-config-vars icon indicating copy to clipboard operation
motion-config-vars copied to clipboard

Top level config name is inappropriately cached in ENV

Open iwarshak opened this issue 11 years ago • 0 comments

Given the examples, specifically the API_ENV configuration...

Running in the sim with: rake API_ENV=development the first time is fine, and if you inspect ENV['API_ENV'], you get 'development', as expected

However, if you run it again with API_ENV=staging, then in the code inspecting ENV['API_ENV'] will be development NOT staging.

RMENV['API_ENV'] has the correct result and ENV["HOST"] has the correct result

So it seems that the hash values for the top level gets cached somewhere. Hopefully this makes sense.

iwarshak avatar Jun 12 '13 22:06 iwarshak