#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")"

echo "==> Building frontend..."
(cd frontend && npm run build)

echo "==> Deploying with docker compose..."
docker compose -f compose.yml up -d --build

echo "==> Done!"
echo "    Web IDE:    http://localhost:8080"
echo "    Reticulum:  tcp://0.0.0.0:4242"
