claude/heroku-clone-mvp-plan-NREhc #1
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "claude/heroku-clone-mvp-plan-NREhc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
latest changes from GitHub
include_str!("../../templates/...") is resolved at compile time, so the template files must be present in the Docker build context. The previous Dockerfile only copied server/src, not server/templates. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXHDOMAIN_SUFFIX=local (or any non-localhost LAN name) caused a TLS handshake failure because Caddy attempted an ACME challenge that can never succeed for private domains. - Caddyfile: tls {$ACME_EMAIL:internal} — falls back to Caddy's built-in CA when ACME_EMAIL is absent, uses Let's Encrypt when it is set. - start.sh: ACME_EMAIL is now optional; missing it prints a warning instead of aborting, so local/LAN setups work without an email address. To trust the self-signed cert in a browser run: caddy trust https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH- db.rs: add nullable git_token column (idempotent ALTER TABLE ADD COLUMN) - models.rs: git_token on App (#[serde(skip_serializing)]), CreateApp, UpdateApp - routes/apps.rs: encrypt token on create/update; empty string clears it - builder.rs: decrypt token, pass as GIT_TOKEN env var to build script - build.sh: GIT_TERMINAL_PROMPT=0 (fail fast, not hang); when GIT_TOKEN is set, inject it into the HTTPS clone URL as x-token-auth; strip credentials from .git/config after clone/fetch so the token is never persisted to disk Token usage: PATCH /api/apps/:id with {"git_token": "ghp_..."} Clear token: PATCH /api/apps/:id with {"git_token": ""} https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH