tambahan
This commit is contained in:
@@ -78,7 +78,7 @@ networks:
|
|||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
const generate = (name: string, env: "staging" | "prod", port: number) => {
|
const generate = (name: string, env: "staging" | "prod", port: string) => {
|
||||||
return `
|
return `
|
||||||
#!/bin/bash
|
#!/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);
|
const composeFile = text(name);
|
||||||
await fs.writeFile(`./compose.yml`, composeFile);
|
await fs.writeFile(`./compose.yml`, composeFile);
|
||||||
Bun.spawnSync(["bash", "-c", generate(name, env, port)]);
|
Bun.spawnSync(["bash", "-c", generate(name, env, port)]);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "g3n",
|
"name": "g3n",
|
||||||
"version": "1.0.18",
|
"version": "1.0.19",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"bin": {
|
"bin": {
|
||||||
"g3n": "./bin/g3n.ts"
|
"g3n": "./bin/g3n.ts"
|
||||||
|
|||||||
Reference in New Issue
Block a user