This commit is contained in:
bipproduction
2025-10-06 17:48:07 +08:00
parent 21e28497af
commit 3874308cce
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ networks:
`
}
const generate = (name: string, env: "staging" | "prod", port: number) => {
const generate = (name: string, env: "staging" | "prod", port: string) => {
return `
#!/bin/bash
@@ -125,7 +125,7 @@ EOF
`
}
async function compose(name: string, env: "staging" | "prod", port: number) {
async function compose(name: string, env: "staging" | "prod", port: string) {
const composeFile = text(name);
await fs.writeFile(`./compose.yml`, composeFile);
Bun.spawnSync(["bash", "-c", generate(name, env, port)]);

View File

@@ -1,6 +1,6 @@
{
"name": "g3n",
"version": "1.0.18",
"version": "1.0.19",
"type": "module",
"bin": {
"g3n": "./bin/g3n.ts"