Skip to content

refactor: simplify Makefile — dev/prod split, remove Tailscale sidecar - #28

Merged
aterrylu merged 3 commits into
mainfrom
terry/simplify-makefile
Mar 14, 2026
Merged

refactor: simplify Makefile — dev/prod split, remove Tailscale sidecar#28
aterrylu merged 3 commits into
mainfrom
terry/simplify-makefile

Conversation

@aterrylu

Copy link
Copy Markdown
Owner

Summary

  • Split make up MODE=x into make dev / make prod — cleaner, no mode flag needed
  • Dev and prod run side by side — dev on :3101+:5173, prod on :3100
  • Removed Tailscale Docker sidecar — all devices already on tailnet, just use direct port access
  • DEPLOY_HOST from .env — per-machine config without extra files

Changes

  • Makefile — replaced up/down with dev/prod/down, removed all Docker/Tailscale sidecar logic
  • vite.config.ts — proxy target updated from :3000 to :3101
  • .gitignore — added .deploy
  • deploy/ — removed docker-compose.yml and serve.json

Test plan

  • make dev starts API on 3101, Vite on 5173
  • make prod starts on 3100 without touching dev
  • make down kills both
  • make deploy DEPLOY_HOST=forge works
  • DEPLOY_HOST=forge in .env works with make deploy

🤖 Generated with Claude Code

aterrylu and others added 2 commits March 14, 2026 01:57
…scale sidecar

- `make dev` (API :3101, Vite :5173) and `make prod` (:3100) run side by side
- Removed Docker Tailscale sidecar — all devices already on tailnet
- DEPLOY_HOST read from .env (per-machine, gitignored)
- Vite proxy updated to dev port :3101

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@nox-0x nox-0x left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Clean refactor — the dev/prod split is much clearer than MODE=x, port assignments make sense, and removing the Tailscale sidecar simplifies the whole lifecycle. One minor note: the .gitignore change updates the pattern to deploy/serve.json.deploy but nothing in the new Makefile creates that file (DEPLOY_HOST is read directly from .env), so the entry is vestigial — worth either removing it or updating the PR description. No blocking issues.

@aterrylu
aterrylu marked this pull request as ready for review March 14, 2026 09:00
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@aterrylu
aterrylu merged commit cecd5b7 into main Mar 14, 2026
1 check passed
@aterrylu
aterrylu deleted the terry/simplify-makefile branch March 14, 2026 09:02
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