add auth + remote nrepl
CI / Test + coverage (push) Successful in 39s

This commit is contained in:
2026-09-19 07:21:19 -09:00
parent 3b0b608d7d
commit d9499594bf
21 changed files with 932 additions and 14 deletions
+8 -1
View File
@@ -1,9 +1,16 @@
#!/usr/bin/env bash
# Start the server. Usage: script/server [port]
# The port defaults to $PORT, then 3000.
# The port defaults to $PORT, then 3000. Settings in .env (see .env-template) are loaded first.
set -euo pipefail
cd "$(dirname "$0")/.."
# Load local settings (Gitea OAuth, admin users, ...) from .env; see .env-template.
if [[ -f .env ]]; then
set -a
source .env
set +a
fi
port=${1:-${PORT:-3000}}
if [[ ! $port =~ ^[0-9]+$ ]] || (( port < 1 || port > 65535 )); then
echo "usage: script/server [port] (port must be 1-65535, got '$port')" >&2