node_modules.
Prerequisites
- Code builds on MacBook
- Git remote (GitHub/GitLab private repo)
- ThinkCentre reachable (local or Tailscale SSH)
Steps
- On MacBook: commit +
git push origin main(SAAS-Lifebot and Obsidian-Docs). - On ThinkCentre:
git cloneorgit pull. - Secrets: create
.envon ThinkCentre only. Prefer generating newAPP_SECRETand production Clerk keys rather than scp’ing Mac.envlong-term. - Do not rsync
node_modules,.next, orlocal.dbfor production. docker compose up -d --build(production path).- Update Clerk allowed URLs for the ThinkCentre public/tailnet hostname.
- Optional: install Grok Build on ThinkCentre for future edits; still use git.
Verification
git log -1matches MacBook tip- App serves on ThinkCentre URL
- Dev MacBook no longer required for friends to use the app
Rollback
Keep previous image/tag or git checkout prior commit and rebuild.
Compiled from
wiki/projects/SAAS-Lifebot/runbooks/mac-to-thinkcentre-port.md · git is the source of truth