#!/usr/bin/env bash
# Pulse Chat — start script
# Leser .env hvis den finnes (laget av install.sh), og starter serveren.

ROOT="$(cd "$(dirname "$0")" && pwd)"
cd "$ROOT"

# Last inn .env hvis den finnes
if [ -f .env ]; then
  set -a
  . ./.env
  set +a
fi

PORT=${PORT:-3000}
SITE_NAME=${SITE_NAME:-Radio TordenSkrall Chat}

echo ""
echo "🔴  $SITE_NAME — Video Chat Server"
echo "    PORT: $PORT"
echo ""

PORT=$PORT node server.js
