wip: zen
This commit is contained in:
parent
71b20698bb
commit
2cc738fb17
4 changed files with 6 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ import os from "os"
|
|||
import { ZenData } from "../src/model"
|
||||
|
||||
const root = path.resolve(process.cwd(), "..", "..", "..")
|
||||
const models = await $`bun sst secret list`.cwd(root).text()
|
||||
const models = await $`bun sst secret list --stage frank`.cwd(root).text()
|
||||
const PARTS = 30
|
||||
|
||||
// read the line starting with "ZEN_MODELS"
|
||||
|
|
@ -40,4 +40,4 @@ const newValues = Array.from({ length: PARTS }, (_, i) =>
|
|||
|
||||
const envFile = Bun.file(path.join(os.tmpdir(), `models-${Date.now()}.env`))
|
||||
await envFile.write(newValues.map((v, i) => `ZEN_MODELS${i + 1}="${v.replace(/"/g, '\\"')}"`).join("\n"))
|
||||
await $`bun sst secret load ${envFile.name}`.cwd(root)
|
||||
await $`bun sst secret load ${envFile.name} --stage frank`.cwd(root)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue