Skip to content

tilt: cross-platform backend startup#30

Open
infinitea1 wants to merge 1 commit into
samrford:masterfrom
infinitea1:fix-tilt-cross-platform
Open

tilt: cross-platform backend startup#30
infinitea1 wants to merge 1 commit into
samrford:masterfrom
infinitea1:fix-tilt-cross-platform

Conversation

@infinitea1
Copy link
Copy Markdown
Contributor

The current serve_cmd uses bash-style env-var prefix and line continuations (KEY="value" ). That works on macOS where Tilt runs commands through bash, but on Windows Tilt invokes serve_cmd via cmd /S /C, which doesn't parse bash continuations or env prefixes — so tilt up can't boot the backend on a Windows machine.

Switch to Tilt's serve_env={...} dict (platform-agnostic env wiring) and swap the pre-built bin/server invocation for go run ./cmd/server (no OS-specific binary suffix). Same env vars, same behaviour on macOS — also works on Windows now.

Also gitignore CLAUDE.md / CLAUDE.local.md / .claude/ for personal agent-tooling files.

Can you check it still works for you? I had to do this change to get it running on windows.

The current serve_cmd uses bash-style env-var prefix and line continuations
(KEY="value" \). That works on macOS where Tilt runs commands through bash,
but on Windows Tilt invokes serve_cmd via `cmd /S /C`, which doesn't parse
bash continuations or env prefixes — so `tilt up` can't boot the backend on
a Windows machine.

Switch to Tilt's serve_env={...} dict (platform-agnostic env wiring) and
swap the pre-built bin/server invocation for `go run ./cmd/server` (no
OS-specific binary suffix). Same env vars, same behaviour on macOS — also
works on Windows now.

Also gitignore CLAUDE.md / CLAUDE.local.md / .claude/ for personal
agent-tooling files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Comment thread Tiltfile
'MINIO_USER': envvar('MINIO_USER', 'beyond-admin'),
'MINIO_PASSWORD': envvar('MINIO_PASSWORD', 'beyond-password'),
'MINIO_PUBLIC_URL': envvar('MINIO_PUBLIC_URL', 'http://localhost:9000'),
'SUPABASE_URL': envvar('SUPABASE_URL'),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'SUPABASE_URL': envvar('SUPABASE_URL'),
'SUPABASE_URL': envvar('SUPABASE_URL', 'https://zzoxjjkljxbaycmubwog.supabase.co'),

I'd like to keep this as the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants