[claude] Live staging + auto-refresh on push (#33) #34
Reference in New Issue
Block a user
Delete Branch "claude/the-nexus:claude/issue-33"
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?
Fixes #33
What this does
Auto-refresh when main advances
index.htmlpolls the Gitea/branches/mainendpoint every 30s. When the commit SHA changes, a banner flashes a countdown and the page auto-reloads — bookmark it and leave it open, it stays current.Docker staging environments
Dockerfile: nginx:alpine serving the static sitedocker-compose.yml: two services —nexus-mainon port 4200 andnexus-stagingon port 4201deploy.sh: one-liner to rebuild and restart either serviceCI auto-deploy on push
.gitea/workflows/deploy.ymltriggers on every push tomain, SSHes into the host, pulls, and redeploys. SetDEPLOY_HOST,DEPLOY_USER,DEPLOY_SSH_KEY(optionallyDEPLOY_REPO_DIR) as repo secrets to activate.Bookmarkable URL
The tab auto-refreshes whenever a new commit lands on main.
e8e57ae4b0toc4547d2e52