fix: deploy writes .env (not .env.production) so PM2 loads secrets
Deploy to route.crispygoat.com / deploy (push) Successful in 4m0s
Deploy to route.crispygoat.com / deploy (push) Successful in 4m0s
This commit is contained in:
@@ -176,7 +176,7 @@ jobs:
|
|||||||
|
|
||||||
# Upload env file and sync build output
|
# Upload env file and sync build output
|
||||||
echo "Uploading env file..."
|
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/..."
|
echo "Copying .next/..."
|
||||||
scp -o ConnectTimeout=30 -o StrictHostKeyChecking=no -r .next tyler@route.crispygoat.com:$APP_DIR/
|
scp -o ConnectTimeout=30 -o StrictHostKeyChecking=no -r .next tyler@route.crispygoat.com:$APP_DIR/
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ export default async function AdminStopsPage({ searchParams }: PageProps) {
|
|||||||
brands: r.brand_name ? { name: r.brand_name } : { name: "" },
|
brands: r.brand_name ? { name: r.brand_name } : { name: "" },
|
||||||
}));
|
}));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error("[admin/stops] Failed to load stops:", e);
|
||||||
error = { message: e instanceof Error ? e.message : String(e) };
|
error = { message: e instanceof Error ? e.message : String(e) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user