Files

34 lines
953 B
Bash
Executable File

#!/bin/bash
# Start all services in sandbox
# Usage: ./scripts/start_services.sh [sandbox_dir]
SANDBOX_DIR=${1:-$(ls -td /Users/accusys/sandboxes/* 2>/dev/null | head -1)}
if [ -z "$SANDBOX_DIR" ]; then
echo "Error: No sandbox found"
exit 1
fi
echo "=== Starting services in ${SANDBOX_DIR} ==="
# Start markbase (port 11438)
echo "Starting markbase..."
cd "${SANDBOX_DIR}/markbase" && ./markbase --port 11438 &
# Start MarkBaseEngine
echo "Starting MarkBaseEngine..."
cd "${SANDBOX_DIR}/MarkBaseEngine" && ./markbaseengine &
# Start momentry_core (port 3002)
echo "Starting momentry_core..."
cd "${SANDBOX_DIR}/momentry_core" && cargo run -- server &
# Start momentry_studio proxy (port 8888)
echo "Starting momentry_studio..."
cd "${SANDBOX_DIR}/momentry_studio" && npm run dev &
echo "=== Services starting ==="
echo "MarkBase: http://localhost:11438"
echo "Momentry Core: http://localhost:3002"
echo "Studio Proxy: http://localhost:8888"