fix (dev): fix dev:{up,down,init} scripts

This commit is contained in:
naskya 2024-03-03 18:57:56 +09:00
parent 9a63f85567
commit cc33cfbb3e
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
3 changed files with 11 additions and 2 deletions

View file

@ -5,7 +5,11 @@ import { execa } from "execa";
(async () => { (async () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url)); 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"), cwd: join(__dirname, "/../dev"),
stdio: "inherit", stdio: "inherit",
}); });

View file

@ -5,7 +5,12 @@ import { execa } from "execa";
(async () => { (async () => {
const __dirname = path.dirname(fileURLToPath(import.meta.url)); 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"), cwd: join(__dirname, "/../dev"),
stdio: "inherit", stdio: "inherit",
}); });