#!/usr/bin/env bash
# Start the Berufswelten server (LAN / local). Run from this unzipped folder.
set -euo pipefail
cd "$(dirname "$0")"
export CONTENT_DIR="${CONTENT_DIR:-./content}"
export SCENES_DIR="${SCENES_DIR:-./data/scenes}"
export BIND_ADDR="${BIND_ADDR:-0.0.0.0:8080}"
export RUST_LOG="${RUST_LOG:-info}"
# DATABASE_URL defaults to sqlite:berufswelten.db in this directory when unset.
exec ./server
