From 944feb39ecebb84fe597db61092fe6fc42fa001e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Mar 2026 11:34:23 +0000 Subject: [PATCH] fix: pass PORT env var to app container Apps follow the Heroku convention of binding to $PORT at runtime. Without --env PORT=$PORT, containers use their default port which doesn't match what Caddy is configured to dial, causing 502s. --- builder/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/build.sh b/builder/build.sh index 44363a6..4a15394 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -100,6 +100,7 @@ docker run --detach \ --name "$CONTAINER_NAME" \ --network hiy-net \ "${ENV_FILE_ARG[@]+"${ENV_FILE_ARG[@]}"}" \ + --env "PORT=${PORT}" \ --expose "$PORT" \ --label "hiy.app=${APP_ID}" \ --label "hiy.port=${PORT}" \