fix: migrate gitea remote to hermes VPS + fix TS errors from Gemini codegen
- gitea remote now points to http://143.198.27.163:3000/admin/timmy-tower.git (no more bore tunnel / Tailscale dependency) - push-to-gitea.sh: default URL → hermes, user → admin, fix http:// URL injection - .gitea-credentials: hermes token saved (gitignored) - orval.config.cjs: converted from .ts (fixed orval v8 TS config loading) - api-zod/src/index.ts: removed duplicate types/ re-export (both api.ts and types/ export same names — api.ts is sufficient) - integrations-gemini-ai/tsconfig.json: types:[] (no @types/node in this pkg) - batch/utils.ts: import AbortError as named export (not pRetry.AbortError) - image/index.ts: remove ai re-export (ai only on main client.ts now) - routes/gemini.ts: req.params[id] cast to String() for Express 5 type compat - package.json typecheck: exclude mockup-sandbox (pre-existing React 19 ref errors)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
# =============================================================================
|
||||
set -euo pipefail
|
||||
|
||||
GITEA_USER="${GITEA_USER:-replit}"
|
||||
GITEA_USER="${GITEA_USER:-admin}"
|
||||
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
||||
|
||||
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'
|
||||
@@ -35,8 +35,8 @@ if [[ -z "$GITEA_BASE" && -f "$REPO_ROOT/.env.local" ]]; then
|
||||
GITEA_BASE="$(grep '^GITEA_URL=' "$REPO_ROOT/.env.local" | cut -d= -f2- | tr -d '[:space:]')"
|
||||
fi
|
||||
|
||||
# Fallback: Tailscale Funnel (permanent, no port changes)
|
||||
GITEA_BASE="${GITEA_BASE:-https://mm.tailb74b2d.ts.net}"
|
||||
# Fallback: Hermes VPS Gitea (public, no bore/Tailscale needed)
|
||||
GITEA_BASE="${GITEA_BASE:-http://143.198.27.163:3000}"
|
||||
|
||||
# Strip trailing slash
|
||||
GITEA_BASE="${GITEA_BASE%/}"
|
||||
@@ -68,9 +68,11 @@ info "Checking Gitea at ${GITEA_BASE} …"
|
||||
if ! curl -sf --max-time 8 "${GITEA_BASE}/api/v1/version" -o /dev/null 2>/dev/null; then
|
||||
die "Gitea is not reachable at ${GITEA_BASE}.
|
||||
|
||||
Check that your Tailscale Funnel is running:
|
||||
tailscale funnel status
|
||||
tailscale funnel 3000 # to start it"
|
||||
Hermes VPS Gitea should always be accessible at:
|
||||
http://143.198.27.163:3000
|
||||
|
||||
Check that the VPS is up:
|
||||
ssh root@143.198.27.163 'systemctl status gitea'"
|
||||
fi
|
||||
|
||||
ok "Gitea reachable at ${GITEA_BASE}"
|
||||
@@ -95,7 +97,10 @@ info "Branch: ${BRANCH}"
|
||||
|
||||
# ─── 5. Update (or add) the gitea remote ─────────────────────────────────────
|
||||
|
||||
REMOTE_URL_WITH_CREDS="${GITEA_BASE/https:\/\//https://${GITEA_USER}:${GITEA_TOKEN}@}/${GITEA_USER}/${REPO_NAME}.git"
|
||||
# Inject credentials into URL regardless of http/https scheme
|
||||
SCHEME="${GITEA_BASE%%://*}"
|
||||
HOST_PATH="${GITEA_BASE#*://}"
|
||||
REMOTE_URL_WITH_CREDS="${SCHEME}://${GITEA_USER}:${GITEA_TOKEN}@${HOST_PATH}/${GITEA_USER}/${REPO_NAME}.git"
|
||||
|
||||
if git -C "$REPO_ROOT" remote get-url gitea &>/dev/null; then
|
||||
git -C "$REPO_ROOT" remote set-url gitea "$REMOTE_URL_WITH_CREDS"
|
||||
|
||||
Reference in New Issue
Block a user