From ef3a00881a80c8c55ed67d9d9d8cf497e17f6b4a Mon Sep 17 00:00:00 2001 From: flamboh Date: Tue, 29 Sep 2026 01:19:20 -0700 Subject: [PATCH] feat(infra): keep self-hosted deploy state local --- docs/user/operations.md | 3 ++- infra/self-hosted.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/user/operations.md b/docs/user/operations.md index 9fa8a988..3858ef6f 100644 --- a/docs/user/operations.md +++ b/docs/user/operations.md @@ -46,7 +46,8 @@ On your machine: - The repository with `bun install` done, and the Docker CLI (the image builds on the server, so no local daemon is needed). - `ssh docker info` works without a password prompt. -- `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`. Alchemy stores its deploy state in Cloudflare and creates nothing else there. + +Alchemy keeps the deploy state in `.alchemy/` in your checkout. Deploy and tear down from the same checkout, or it loses track of the container. ### Deploy diff --git a/infra/self-hosted.ts b/infra/self-hosted.ts index c547d962..6b1d73f9 100644 --- a/infra/self-hosted.ts +++ b/infra/self-hosted.ts @@ -1,5 +1,4 @@ import * as Alchemy from 'alchemy'; -import * as Cloudflare from 'alchemy/Cloudflare'; import * as Docker from 'alchemy/Docker'; import * as Config from 'effect/Config'; import * as ConfigProvider from 'effect/ConfigProvider'; @@ -28,7 +27,7 @@ export default Alchemy.Stack( selfHostedName, { providers: Docker.providers(), - state: Cloudflare.state() + state: Alchemy.localState() }, Effect.gen(function* () { const { stage } = yield* Alchemy.Stack;