Closed coffeejunk closed 2 years ago
Is this still meaningful @coffeejunk - if this becomes part of the next release, are you able to test it? I don't know why the Sinatra env was used historically and what the implications are of this change to be honest. I appreciate the screenshot and think the change is probably fine, but I wouldn't have a way to test it to get more validation.
I'll close for now but re-open if you're able to answer the above ^ Thanks.
Use the
Rails.env
instead ofSinatra::Application.environment
.Sinatra depends on
APP_ENV
rather thanRAILS_ENV
and defaults todevelopment
if noAPP_ENV
is set. This can lead to situations where the host application is running inproduction
but the dashboard is showingdevelopment
.Fixes #112