#!/bin/bash # CyberLux — build and run (clearnet dev). For Tor hidden service, see scripts/install-tor-onion.sh set -euo pipefail cd "$(dirname "$0")" echo "--------------------------------------------------" echo " CYBERLUX — BUILD & RUN " echo "--------------------------------------------------" DEPLOY_SEED=$((RANDOM % 10000)) echo "[*] Deployment seed: $DEPLOY_SEED" export NEXT_PUBLIC_DEPLOY_SEED=$DEPLOY_SEED echo "[*] Installing dependencies..." npm install echo "[*] Building..." npm run build echo "--------------------------------------------------" echo " CLEARNET DEV " echo "--------------------------------------------------" echo "[+] Open http://localhost:3000" echo "" echo "Tor (.onion) production (pull, build, Tor/nginx, print onions, start app):" echo " ./start.sh" echo " (or CYBERLUX_SKIP_GIT_PULL=1 ./start.sh if you already pulled)" echo "--------------------------------------------------" npm run dev