ops: make site deploys from repo root (project rootDirectory=site restored)
Git builds were producing empty output (rootDirectory had been reset), and the old cd-site CLI path only worked while it was unset. .vercelignore limits the CLI upload to site/; Makefile guards the root .vercel link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86aba9dae8
commit
648ac06949
3 files changed
+12
-2
No files matched your search
@@ -5,3 +5,6 @@ docs/reddit_post.md
|
|||||||
.vercel
|
.vercel
|
||||||
.env*
|
.env*
|
||||||
SESSION_RESUME.md
|
SESSION_RESUME.md
|
||||||
|
.venv/
|
||||||
|
runs/impossible_states/
|
||||||
|
.DS_Store
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# CLI deploys run from the repo root (project rootDirectory = "site");
|
||||||
|
# upload only the site, not the 1G+ research tree
|
||||||
|
/*
|
||||||
|
!/site
|
||||||
@@ -61,10 +61,13 @@ status:
|
|||||||
@railway deployment list -p $(RELAY_PROJECT) -e $(RELAY_ENV) -s saw 2>&1 | head -4
|
@railway deployment list -p $(RELAY_PROJECT) -e $(RELAY_ENV) -s saw 2>&1 | head -4
|
||||||
@echo "(see make links for which service each dir targets)"
|
@echo "(see make links for which service each dir targets)"
|
||||||
|
|
||||||
# Site (Vercel, CLI deploy — nothing auto-deploys it; see public-site-ops skill)
|
# Site (Vercel). Git pushes to master auto-deploy; this is the manual path.
|
||||||
|
# Project rootDirectory = "site", so deploy from the REPO ROOT (from inside
|
||||||
|
# site/ the CLI double-scopes and fails); .vercelignore limits the upload.
|
||||||
SITE_URL = https://wirehead.agency
|
SITE_URL = https://wirehead.agency
|
||||||
site:
|
site:
|
||||||
@cd site && vercel --prod --yes 2>&1 | grep -E "Aliased|Error" ; \
|
@grep -q '"prj_kiAviK8FEAcW2566QO1i9cwLERJ7"' .vercel/project.json || { echo "root .vercel/ not linked to the site project — run: vercel link --yes --project wirehead"; exit 1; }
|
||||||
|
@vercel --prod --yes 2>&1 | grep -E "Aliased|Error" ; \
|
||||||
curl -s -o /dev/null -w "live check: %{http_code}\n" -m 15 $(SITE_URL)/verify.html && \
|
curl -s -o /dev/null -w "live check: %{http_code}\n" -m 15 $(SITE_URL)/verify.html && \
|
||||||
curl -s -o /dev/null -w "index: %{http_code}\n" -m 15 $(SITE_URL)/
|
curl -s -o /dev/null -w "index: %{http_code}\n" -m 15 $(SITE_URL)/
|
||||||
@echo "verify the NEW content is live (grep a unique new string), not just a 200"
|
@echo "verify the NEW content is live (grep a unique new string), not just a 200"
|
||||||
Reference in new issue
Block a user