fix: deploy writes .env (not .env.production) so PM2 loads secrets
Deploy to route.crispygoat.com / deploy (push) Successful in 4m0s

This commit is contained in:
Tyler
2026-06-10 14:06:02 -06:00
parent b5f7252ac0
commit 7d1e6f784b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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/
+1
View File
@@ -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) };
}