From 1c09ff633b6b793463f12e3b3a8fbe5b4093dfd2 Mon Sep 17 00:00:00 2001 From: Aaron Elkiss Date: Fri, 13 Mar 2026 09:19:56 -0400 Subject: [PATCH] Set PLACK_ENV for cgis --- imgsrv/cgi/download | 3 ++- imgsrv/cgi/imgsrv | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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;