How to Find Out What Environment (development/production) is Plack running under?
mikkoi opened this issue · 2 comments
mikkoi commented
Is there any way to find out which environment Plack is using in a Middleware or inside an app (inside .psgi file)?
I run plackup and I have the same application running in development, staging and production.
skaji commented
You may refer to $ENV{PLACK_ENV}
.
https://metacpan.org/pod/distribution/Plack/script/plackup#-E,-env,-the-PLACK_ENV-environment-variable.
mikkoi commented
Thanks. Closing issue.