Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(local): ensure resources just run_dev (#4411)

teoc12206beee36
diff --git a/rust/cloud-storage/tools/xtask/src/local/mod.rs b/rust/cloud-storage/tools/xtask/src/local/mod.rs
index 48c2dff9e3..711b4871da 100644
--- a/rust/cloud-storage/tools/xtask/src/local/mod.rs
+++ b/rust/cloud-storage/tools/xtask/src/local/mod.rs
@@ -198,9 +198,11 @@ pub fn run_stack(mode: Mode, args: &cli::RunArgs) -> Result<()> {
Ok(())
})?;
}
- if mode.spec().runs_local_infra {
- ensure_external_resources(&stage, &instance)?;
- }
+ // Both modes run at least Redis + LocalStack locally, and those reference the
+ // instance's `external` volumes/networks — which must exist before compose
+ // `up`. Unconditional + idempotent, mirroring the unconditional teardown (dev
+ // was tearing `macro_redis_data` down each run but never recreating it).
+ ensure_external_resources(&stage, &instance)?;
// Bring the backend infra up and fully ready — DB created + migrated,
// LocalStack provisioned, FusionAuth kickstarted — BEFORE the app services