Skip to content

Instantly share code, notes, and snippets.

@enisoru
enisoru / setup.sh
Last active April 30, 2026 10:00
tipos.рф — server bootstrap (Ubuntu 24.04, Node 20, PG 16, nginx, pm2)
#!/bin/bash
# Tipos full server setup — non-interactive, runs as root.
# Required env vars:
# GH_TOKEN — GitHub token with repo read access (passed from CI)
# GH_REPO — owner/repo (e.g. enisoru/tipos)
# Idempotent: safe to re-run.
set -euo pipefail
: "${GH_TOKEN:?GH_TOKEN env var required}"