Files
eifeldc/infra/scripts/start.sh
root 0978d0c2e9
Some checks failed
CI / Rust Check (push) Has been cancelled
CI / Rust Tests (push) Has been cancelled
CI / Frontend Check (push) Has been cancelled
CI / Build Tauri (macOS) (push) Has been cancelled
CI / Build Tauri (macOS Intel) (push) Has been cancelled
CI / Build Tauri (Linux) (push) Has been cancelled
Initial commit: EifelDC - Discord-like Matrix chat platform
Includes server (Rust/Axum API proxy with voice management),
Tauri desktop client with Svelte UI, bot-sdk, Docker infra
(Synapse, PostgreSQL, Coturn, Nginx), and CI/CD pipeline.
2026-04-28 08:23:23 +02:00

34 lines
869 B
Bash

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
INFRA_DIR="$(dirname "$SCRIPT_DIR")"
if command -v docker &>/dev/null && [ -f "${INFRA_DIR}/docker-compose.yml" ]; then
echo "=== Starting EifelDC Infrastructure (Docker) ==="
cd "${INFRA_DIR}"
docker compose up -d
echo ""
echo "Waiting for services..."
sleep 5
echo ""
echo "Container status:"
docker compose ps
echo ""
echo "Running health check..."
"${SCRIPT_DIR}/healthcheck.sh" || true
else
echo "=== Starting EifelDC Infrastructure (Native) ==="
sudo systemctl start postgresql
sudo systemctl start eifeldc-synapse
sudo systemctl start coturn
sudo systemctl start nginx
sudo systemctl start eifeldc-server
echo "All services started."
echo ""
"${SCRIPT_DIR}/healthcheck.sh" || true
fi