This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |