- Configure mem0 to use self-hosted Supabase instead of Qdrant for vector storage - Update docker-compose to connect containers to localai network - Install vecs library for Supabase pgvector integration - Create comprehensive test suite for Supabase + mem0 integration - Update documentation to reflect Supabase configuration - All containers now connected to shared localai network - Successful vector storage and retrieval tests completed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "🔧 Fixing docs.klas.chat deployment issues..."
|
|
|
|
# Check if Mintlify is running on any port
|
|
echo "📊 Checking current port usage..."
|
|
echo "Ports 3000-3004:"
|
|
ss -tlnp | grep -E "(3000|3001|3002|3003|3004)"
|
|
|
|
echo ""
|
|
echo "🛠️ The Caddyfile has a syntax error on line 276 - 'encode gzip' needs proper indentation."
|
|
echo ""
|
|
echo "Please fix the Caddyfile by changing line 276 from:"
|
|
echo " encode gzip"
|
|
echo "to:"
|
|
echo " encode gzip"
|
|
echo ""
|
|
echo "The line should be indented with a TAB character, not spaces."
|
|
echo ""
|
|
|
|
# Let's try to start Mintlify on a definitely free port
|
|
echo "🚀 Let's try starting Mintlify on port 3005..."
|
|
cd /home/klas/mem0/docs
|
|
|
|
# Check if port 3005 is free
|
|
if ss -tln | grep -q ":3005 "; then
|
|
echo "❌ Port 3005 is also occupied. Let's try 3010..."
|
|
PORT=3010
|
|
else
|
|
PORT=3005
|
|
fi
|
|
|
|
echo "🌐 Starting Mintlify on port $PORT..."
|
|
echo "📝 You'll need to update the Caddyfile to use port $PORT instead of 3003"
|
|
echo ""
|
|
echo "Update this line in /etc/caddy/Caddyfile:"
|
|
echo " reverse_proxy localhost:$PORT"
|
|
echo ""
|
|
|
|
# Start Mintlify
|
|
mint dev --port $PORT |