Skip to content

fix(deploy): point the staging deployment URL at the host that actually serves it - #1145

Merged
frankbria merged 1 commit into
mainfrom
fix/staging-url
Aug 11, 2026
Merged

fix(deploy): point the staging deployment URL at the host that actually serves it#1145
frankbria merged 1 commit into
mainfrom
fix/staging-url

Conversation

@frankbria

Copy link
Copy Markdown
Owner

Found while verifying the staging deploy after v0.9.2.

The problem

deploy.yml's environment.url pointed at https://dev.codeframeapp.com. That
name resolves to the staging box but has no nginx site block and no
certificate
, so the shared VPS answers with another project's cert
(dev.autoauthor.app) and TLS fails:

curl: (60) SSL: no alternative certificate subject name matches
      target host name 'dev.codeframeapp.com'

So the GitHub deployment link looked like staging was down, while it was serving
fine at https://dev.codeframe.sh.

Verified on the box, not inferred

pm2:    codeframe-staging-backend   online   40m
        codeframe-staging-frontend  online   40m
proxy:  nginx active, caddy inactive
sites:  dev.codeframe.sh.conf        ← exists
        dev.codeframeapp.com         ← no site block at all

And the live endpoint reports the commit that was just merged:

{"status":"healthy","commit":"d78281c","deployed_at":"2026-08-11T01:46:43Z"}

/api/v2/settings/keys returns 401, so auth enforcement is working too.

Changes

  • deploy.ymlurl: https://dev.codeframe.sh, with the reason recorded so
    the next person does not re-derive it
  • deploy/README.md — states where staging is and how it is served. The
    working URL appeared nowhere in the repository; only the wrong one did
  • legacydocs/nginx-setup-complete.mdSUPERSEDED banner. It documents
    the dead domain and a dead IP (47.88.89.175, replaced by 195.35.14.177 in
    the 2026-07-01 rebuild), so following it wastes real time

Docs and one workflow field only — no application code. actionlint clean, full
suite 6443 passed, 49 skipped.

…ly serves it

deploy.yml's environment.url was https://dev.codeframeapp.com. That name has DNS
to the staging box but no nginx site block and no certificate, so the shared VPS
answers with another project's cert (dev.autoauthor.app) and TLS fails outright.
Anyone following the GitHub deployment link got a certificate error and would
reasonably conclude staging was down — while it was serving fine at
https://dev.codeframe.sh.

Verified on the box rather than inferred: pm2 shows codeframe-staging-backend
and -frontend online, nginx (not Caddy) is the active proxy, and
/etc/nginx/sites-available/ has dev.codeframe.sh.conf with no equivalent for
dev.codeframeapp.com.

Also:
- deploy/README.md now states where staging is. The working URL appeared nowhere
  in the repository — only the wrong one did.
- legacydocs/nginx-setup-complete.md gets a SUPERSEDED banner. It documents the
  dead domain AND a dead IP (47.88.89.175, replaced by 195.35.14.177 in the
  2026-07-01 rebuild), so following it wastes real time.

Full suite: 6443 passed, 49 skipped.
@frankbria
frankbria merged commit ccb907e into main Aug 11, 2026
13 checks passed
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.

1 participant