From cc33cfbb3ee6f9b54c9392c568f6030d9ee0057c Mon Sep 17 00:00:00 2001 From: naskya Date: Sun, 3 Mar 2024 18:57:56 +0900 Subject: [PATCH] fix (dev): fix dev:{up,down,init} scripts --- ...docker-compose-onlydb.yml => docker-compose-dbonly.yml} | 0 scripts/dev-down.mjs | 6 +++++- scripts/dev-up.mjs | 7 ++++++- 3 files changed, 11 insertions(+), 2 deletions(-) rename dev/{docker-compose-onlydb.yml => docker-compose-dbonly.yml} (100%) diff --git a/dev/docker-compose-onlydb.yml b/dev/docker-compose-dbonly.yml similarity index 100% rename from dev/docker-compose-onlydb.yml rename to dev/docker-compose-dbonly.yml diff --git a/scripts/dev-down.mjs b/scripts/dev-down.mjs index 97d9cd3515..8c7a83435a 100644 --- a/scripts/dev-down.mjs +++ b/scripts/dev-down.mjs @@ -5,7 +5,11 @@ import { execa } from "execa"; (async () => { const __dirname = path.dirname(fileURLToPath(import.meta.url)); - execa("podman-compose", ["down"], { + execa("podman-compose", [ + "--file", + "docker-compose-dbonly.yml", + "down", + ], { cwd: join(__dirname, "/../dev"), stdio: "inherit", }); diff --git a/scripts/dev-up.mjs b/scripts/dev-up.mjs index c2de8717a3..166c8dbad3 100644 --- a/scripts/dev-up.mjs +++ b/scripts/dev-up.mjs @@ -5,7 +5,12 @@ import { execa } from "execa"; (async () => { const __dirname = path.dirname(fileURLToPath(import.meta.url)); - execa("podman-compose", ["up", "--detach"], { + execa("podman-compose", [ + "--file", + "docker-compose-dbonly.yml", + "up", + "--detach", + ], { cwd: join(__dirname, "/../dev"), stdio: "inherit", });