- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
21 lines
595 B
Bash
Executable file
21 lines
595 B
Bash
Executable file
#!/bin/bash
|
|
# Start admin panel persistently
|
|
ADMIN_DIR="/mnt/fam/SERVER/IfixKartEcommerce/New admin panel/ikixkart-dashboard"
|
|
LOG_FILE="/mnt/fam/SERVER/IfixKartEcommerce/docs/12-ai/logs/admin.log"
|
|
PID_FILE="/tmp/admin-panel.pid"
|
|
|
|
mkdir -p "$(dirname "$LOG_FILE")"
|
|
|
|
# Kill existing
|
|
if [ -f "$PID_FILE" ]; then
|
|
OLD_PID=$(cat "$PID_FILE")
|
|
kill "$OLD_PID" 2>/dev/null
|
|
rm -f "$PID_FILE"
|
|
fi
|
|
pkill -f "next dev -p 3022" 2>/dev/null
|
|
sleep 1
|
|
|
|
cd "$ADMIN_DIR"
|
|
nohup ./node_modules/.bin/next dev -p 3022 > "$LOG_FILE" 2>&1 &
|
|
echo $! > "$PID_FILE"
|
|
echo "Admin panel started with PID $(cat $PID_FILE)"
|