Files
smom-dbis-138/scripts/deployment/deploy-z-domains.sh
zaragoza444 a2db92f3cb
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m14s
CI/CD Pipeline / Security Scanning (push) Successful in 2m34s
CI/CD Pipeline / Lint and Format (push) Failing after 40s
CI/CD Pipeline / Terraform Validation (push) Failing after 24s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 26s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 37s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 22s
Validation / validate-genesis (push) Successful in 24s
Validation / validate-terraform (push) Failing after 24s
Validation / validate-kubernetes (push) Failing after 9s
Validation / validate-smart-contracts (push) Failing after 10s
Validation / validate-security (push) Failing after 1m22s
Validation / validate-documentation (push) Failing after 17s
Verify Deployment / Verify Deployment (push) Failing after 47s
feat: split Z Ecosystem from OMNL/DBIS with separate builds and deploy
Add VITE_ECOSYSTEM build profiles, Z-only nginx vhosts, standalone Z production stack script, and remove Z Chain from OMNL registry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-07 05:17:40 -07:00

42 lines
1.2 KiB
Bash

#!/usr/bin/env bash
# Install nginx vhost for Z Ecosystem (zblockchainsystem.com)
set -euo pipefail
REPO_DIR="${Z_ECOSYSTEM_ROOT:-${OMNL_BANK_ROOT:-$HOME/smom-dbis-138}}"
VHOST_SRC="$REPO_DIR/deploy/nginx/z-ecosystem-domains.conf"
VHOST_DST="/etc/nginx/sites-available/z-ecosystem-domains"
VHOST_LINK="/etc/nginx/sites-enabled/z-ecosystem-domains"
log() { echo "[$(date -Iseconds)] $*"; }
if [ ! -f "$VHOST_SRC" ]; then
echo "Missing $VHOST_SRC" >&2
exit 1
fi
log "Installing Z Ecosystem nginx vhost..."
sudo cp "$VHOST_SRC" "$VHOST_DST"
SNIPPET_SRC="$REPO_DIR/deploy/nginx/z-ecosystem-common-locations.conf"
SNIPPET_DST="/etc/nginx/snippets/z-ecosystem-common-locations.conf"
sudo cp "$SNIPPET_SRC" "$SNIPPET_DST"
sudo ln -sf "$VHOST_DST" "$VHOST_LINK"
log "Testing nginx..."
sudo nginx -t
log "Reloading nginx..."
sudo systemctl reload nginx
check_host() {
local host="$1"
local expect="$2"
local code
code=$(curl -s -o /dev/null -w '%{http_code}' -H "Host: $host" "http://127.0.0.1/")
log " $host -> HTTP $code (expect redirect toward $expect)"
}
check_host zblockchainsystem.com /z
check_host www.zblockchainsystem.com /z
log "Z domain deploy complete — https://zblockchainsystem.com/z"