feat: setup dataset enrichment app codebase and scripts

This commit is contained in:
asus committed 2026-08-05 11:52:27 +07:00
1 parent b5c28cc98a
commit d07578462e
72 files changed
+11370

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
set -e
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$REPO_DIR"
echo "🔄 Restarting app services..."
# Kill running uvicorn and vite processes
pkill -f "uvicorn backend.main:app" || true
pkill -f "vite" || true
sleep 1
export PATH="$HOME/.local/bin:$PATH"
# Run backend
nohup uv run uvicorn backend.main:app --host 0.0.0.0 --port 8000 > "$REPO_DIR/data/backend.log" 2>&1 &
# Run frontend
cd "$REPO_DIR/frontend"
nohup npm run dev > "$REPO_DIR/data/frontend.log" 2>&1 &
echo "✅ Services restarted."