You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While RACK_ENV defaults to development properly, it's not set until after the config.ru is evaluated, meaning you can't, eg, conditionally load middleware.
Consider the following rackup file. Other servers, including rackup will print development while puma spits out nil.
pENV['RACK_ENV']run->(e){[200,{},[]]}
(PS: puma is awesome. thank you!)
The text was updated successfully, but these errors were encountered:
While
RACK_ENV
defaults todevelopment
properly, it's not set until after theconfig.ru
is evaluated, meaning you can't, eg, conditionally load middleware.Consider the following rackup file. Other servers, including
rackup
will printdevelopment
while puma spits outnil
.(PS: puma is awesome. thank you!)
The text was updated successfully, but these errors were encountered: