Files
smom-dbis-138/scripts/deployment/enable-z-hosts-local.ps1
T
zardashtways44andCursor a2db92f3cb 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 <[email protected]>
2026-07-07 05:17:40 -07:00

13 lines
613 B
PowerShell

# Run as Administrator to map zblockchainsystem.com to this PC (local Z portal on :3002)
$marker = '# Z Ecosystem only'
$hostsPath = "$env:SystemRoot\System32\drivers\etc\hosts"
$line = '127.0.0.1 zblockchainsystem.com www.zblockchainsystem.com rpc.zblockchainsystem.com explorer.zblockchainsystem.com'
$content = Get-Content $hostsPath -Raw
if ($content -match [regex]::Escape($marker)) {
Write-Host 'Z hosts entries already present.'
exit 0
}
Add-Content -Path $hostsPath -Value "`n$marker`n$line"
Write-Host 'Added zblockchainsystem.com -> 127.0.0.1'
Write-Host 'Open: http://zblockchainsystem.com:3002/z'