ops: wirehead bot belongs to the dedicated Railway project (another session's build); drop duplicate deploy paths
This commit is contained in:
1 parent
2a492b5bcb
commit
b3324c7065
6 files changed
+19
-388
No files matched your search
@@ -3,25 +3,29 @@
|
||||
# (per-directory links have bitten us: a stale link deployed chamber code
|
||||
# to forgejo). See SESSION_RESUME.md CAUTION note.
|
||||
|
||||
RAILWAY_PROJECT = 11f1d169-3b88-40e7-a054-f4b79e89c138
|
||||
# NOTE: the wirehead X bot is NOT deployed from this repo anymore. It lives in
|
||||
# the separate Railway project "wirehead" (bc539e96-…) owned by another
|
||||
# session's build (direct X API, 60s polling). Do NOT re-add a wirehead
|
||||
# deploy target or `railway up` into that project from here — two writers
|
||||
# on that service caused a deploy war (SESSION_RESUME.md, 2026-10-02).
|
||||
|
||||
RELAY_PROJECT = 11f1d169-3b88-40e7-a054-f4b79e89c138
|
||||
RELAY_ENV = e1abb91d-1146-4601-aabf-cfb9a8eef2b2
|
||||
RELAY_URL = https://saw-production-688b.up.railway.app
|
||||
RUNPOD_EP = l75388nuqgxtmg
|
||||
REPO = terrafying/ai-torture-chamber
|
||||
|
||||
.PHONY: relay wirehead worker smoke health status links help
|
||||
.PHONY: relay worker smoke health status links help
|
||||
|
||||
help:
|
||||
@echo "make relay - deploy the CPU relay (live/ -> Railway saw)"
|
||||
@echo "make wirehead - sync bot + deploy the wirehead service"
|
||||
@echo "make worker - build+push the GPU worker image (CI rebuilds ghcr)"
|
||||
@echo "make worker - push; CI rebuilds the ghcr GPU worker image"
|
||||
@echo "make smoke - full-path check: relay /health, runpod health, one GPU run"
|
||||
@echo "make health - cheap: relay /health + runpod queue health only"
|
||||
@echo "make status - railway deployment status for all three services"
|
||||
@echo "make status - railway deployment status for the saw project"
|
||||
@echo "make links - show which railway service each directory is linked to"
|
||||
|
||||
links:
|
||||
@echo "== live/ =="; (cd live && railway status 2>/dev/null | grep -A1 Linked)
|
||||
@echo "== wirehead/ =="; (cd wirehead && railway status 2>/dev/null | grep -A1 Linked)
|
||||
|
||||
# ---- deploy targets -------------------------------------------------------
|
||||
# `railway up` needs an ABSOLUTE path (a bare arg once uploaded the repo root)
|
||||
@@ -31,15 +35,6 @@ relay:
|
||||
@cd live && railway service saw && railway up $$(pwd) -y -d 2>&1 | tail -2
|
||||
@echo "watch: make smoke (give the model ~2-3 min to load)"
|
||||
|
||||
wirehead:
|
||||
@cmp -s scripts/wirehead_bot.py wirehead/bot.py || \
|
||||
(echo "syncing bot.py from scripts/"; cp scripts/wirehead_bot.py wirehead/bot.py; \
|
||||
git add wirehead/bot.py)
|
||||
@cmp -s scripts/wirehead_bot.py wirehead/bot.py || \
|
||||
(echo "FATAL: bot.py did not sync"; exit 1)
|
||||
@cd wirehead && railway service wirehead && railway up $$(pwd) -y -d 2>&1 | tail -2
|
||||
@echo "watch: railway logs (from wirehead/) — first cycle within ~1 min"
|
||||
|
||||
worker:
|
||||
@git push origin master
|
||||
@echo "CI (.github/workflows/build-worker.yml) rebuilds ghcr on live/** pushes;"
|
||||
@@ -51,7 +46,7 @@ health:
|
||||
@echo
|
||||
@set -a; [ -f $$HOME/.hermes/.env ] && . $$HOME/.hermes/.env; set +a; \
|
||||
curl -s -m 15 -H 'User-Agent: Mozilla/5.0' -H "Authorization: Bearer $${RUNPOD_API_KEY}" \
|
||||
https://api.runpod.ai/v2/$(RUNPOD_EP)/health
|
||||
https://api.runpod.ai/v2/$(RUNPOD_EP)/health
|
||||
|
||||
smoke: health
|
||||
@echo "--- one real GPU run (costs one inject; urllib, any python) ---"
|
||||
@@ -63,5 +58,5 @@ smoke: health
|
||||
&& echo "relay->runpod token events OK" || echo "RELAY DELEGATION FAILED"
|
||||
|
||||
status:
|
||||
@railway deployment list -p $(RAILWAY_PROJECT) 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)"
|
||||
Reference in new issue
Block a user