diff --git a/imgsrv/cgi/download b/imgsrv/cgi/download index e00827915..87cec6379 100755 --- a/imgsrv/cgi/download +++ b/imgsrv/cgi/download @@ -8,7 +8,8 @@ use strict; use warnings; BEGIN { - # $ENV{DEBUG_LOCAL} = 1; + $ENV{PLACK_ENV} = ( defined $ENV{HT_DEV} ) ? 'development' : 'production'; + # $ENV{DEBUG_LOCAL} = 1; } use Plack::Util; diff --git a/imgsrv/cgi/imgsrv b/imgsrv/cgi/imgsrv index 7dbb0f4b1..0995885ec 100755 --- a/imgsrv/cgi/imgsrv +++ b/imgsrv/cgi/imgsrv @@ -9,6 +9,7 @@ use Vendors __FILE__; # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- BEGIN { + $ENV{PLACK_ENV} = ( defined $ENV{HT_DEV} ) ? 'development' : 'production'; # Set the SDRINST and SDRLIB environment variables in auth # system absence. require Auth::Surrogate;