Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
set -eu
cd /root/NOXIS
python3 - <<'PY'
from pathlib import Path
path = Path('.env.staging')
secret = 'whsec_gt8ym0FRZXWWVrsgHzrKGun3B1TEcM5'
text = path.read_text()
lines = text.splitlines()
out = []
@connersheen
connersheen / noxis-web-envfix.sh
Created April 19, 2026 20:37
NOXIS staging web env fix
#!/bin/sh
set -eu
cd /root/NOXIS
export NEXT_PUBLIC_API_URL=$(sed -n 's/^NEXT_PUBLIC_API_URL="\(.*\)"$/\1/p' .env.staging)
docker compose -f docker-compose.production.yml build web
docker compose -f docker-compose.production.yml up -d --force-recreate web caddy
docker compose -f docker-compose.production.yml ps
@connersheen
connersheen / noxis-web-hotfix.sh
Created April 19, 2026 20:19
NOXIS staging web API URL hotfix
#!/bin/sh
set -eu
cd /root/NOXIS
cat > apps/web/Dockerfile <<'DOCKERFILE'
FROM node:22-alpine AS build
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_API_URL="$NEXT_PUBLIC_API_URL"