From 7d1e6f784bdfc39b6190af31c8ac8dc278373507 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 10 Jun 2026 14:06:02 -0600 Subject: [PATCH] fix: deploy writes .env (not .env.production) so PM2 loads secrets --- .gitea/workflows/deploy.yml | 2 +- src/app/admin/stops/page.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c088942..be83ffa 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -176,7 +176,7 @@ jobs: # Upload env file and sync build output echo "Uploading env file..." - scp -o ConnectTimeout=15 -o StrictHostKeyChecking=no "$ENV_FILE" tyler@route.crispygoat.com:$APP_DIR/.env.production + scp -o ConnectTimeout=15 -o StrictHostKeyChecking=no "$ENV_FILE" tyler@route.crispygoat.com:$APP_DIR/.env echo "Copying .next/..." scp -o ConnectTimeout=30 -o StrictHostKeyChecking=no -r .next tyler@route.crispygoat.com:$APP_DIR/ diff --git a/src/app/admin/stops/page.tsx b/src/app/admin/stops/page.tsx index 1e6277f..289882d 100644 --- a/src/app/admin/stops/page.tsx +++ b/src/app/admin/stops/page.tsx @@ -87,6 +87,7 @@ export default async function AdminStopsPage({ searchParams }: PageProps) { brands: r.brand_name ? { name: r.brand_name } : { name: "" }, })); } catch (e) { + console.error("[admin/stops] Failed to load stops:", e); error = { message: e instanceof Error ? e.message : String(e) }; }