Fix make and podman compose to use correct paths when run from repo root
make build was looking for Makefile in cwd (repo root) instead of infra/. Use -C "$SCRIPT_DIR" so it always finds infra/Makefile regardless of where the script is invoked from. Add -f flag to podman compose up so it finds infra/docker-compose.yml from any working directory. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
ea5b6e5594
commit
0932308ed6
1 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ if [ ! -S "$PODMAN_SOCK" ]; then
|
|||
fi
|
||||
|
||||
# ── Build images ───────────────────────────────────────────────────────────────
|
||||
make build
|
||||
make -C "$SCRIPT_DIR" build
|
||||
|
||||
# ── Start services (detached) ──────────────────────────────────────────────────
|
||||
podman compose --env-file "$REPO_ROOT/.env" up -d
|
||||
podman compose --env-file "$REPO_ROOT/.env" -f "$SCRIPT_DIR/docker-compose.yml" up -d
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue