Files

1 line
5.0 KiB
JSON

{"repo": "benx3/hallucination", "files": {"deploy.sh": {"c7b4491c4e6ea4e7c36794652d4d4d58585c9362": {"t": 1785745946.1138835, "n": 2226, "h": "3b23a6287f0270d2", "c": "#!/bin/bash\n\n# 🚀 Quick Deploy Script for Hallucination Detection Dashboard\n\necho \"🧠 Hallucination Detection Dashboard - Quick Deploy\"\necho \"==================================================\"\n\n# Check if Docker is installed\nif ! command -v docker &> /dev/null; then\n echo \"❌ Docker is not installed. Please install Docker first.\"\n echo \" Visit: https://docs.docker.com/get-docker/\"\n exit 1\nfi\n\n# Check if Docker Compose is installed\nif ! command -v docker-compose &> /dev/null; then\n echo \"❌ Docker Compose is not installed. Please install Docker Compose first.\"\n exit 1\nfi\n\necho \"✅ Docker and Docker Compose found\"\n\n# Check for .env file\nif [ ! -f \".env\" ]; then\n echo \"⚠️ No .env file found. Creating from template...\"\n cp .env.example .env\n echo \"📝 Please edit .env file with your API keys:\"\n echo \" nano .env\"\n echo \"\"\n echo \"Required keys:\"\n echo \" - OPENAI_API_KEY\"\n echo \" - DEEPSEEK_API_KEY (optional)\"\n echo \" - GOOGLE_API_KEY (optional)\"\n echo \"\"\n read -p \"Press Enter after editing .env file...\"\nfi\n\n# Check if configs/config.json exists\nif [ ! -f \"configs/config.json\" ]; then\n echo \"⚠️ No config.json found. Creating from template...\"\n cp configs/config.example.json configs/config.json\n echo \"📝 Please edit configs/config.json with your API keys:\"\n echo \" nano configs/config.json\"\n echo \"\"\n read -p \"Press Enter after editing config.json...\"\nfi\n\necho \"🔨 Building Docker image...\"\ndocker-compose build\n\necho \"🚀 Starting services...\"\ndocker-compose up -d\n\n# Wait for services to start\necho \"⏳ Waiting for services to start...\"\nsleep 10\n\n# Check if services are running\nif docker-compose ps | grep -q \"Up\"; then\n echo \"✅ Services started successfully!\"\n echo \"\"\n echo \"🌐 Dashboard URLs:\"\n echo \" Local: http://localhost:8502\"\n if [ -f \"nginx.conf\" ]; then\n echo \" Nginx: http://localhost:80\"\n fi\n echo \"\"\n echo \"📊 Service Status:\"\n docker-compose ps\n echo \"\"\n echo \"📝 To view logs:\"\n echo \" docker-compose logs -f\"\n echo \"\"\n echo \"🛑 To stop services:\"\n echo \" docker-compose down\"\nelse\n echo \"❌ Services failed to start. Check logs:\"\n docker-compose logs\n exit 1\nfi"}, "55f8ab9525f0804390153f17aefd4e12fd7a20ec": {"t": 1785758165.7735724, "n": 2226, "h": "3b23a6287f0270d2", "c": "#!/bin/bash\n\n# 🚀 Quick Deploy Script for Hallucination Detection Dashboard\n\necho \"🧠 Hallucination Detection Dashboard - Quick Deploy\"\necho \"==================================================\"\n\n# Check if Docker is installed\nif ! command -v docker &> /dev/null; then\n echo \"❌ Docker is not installed. Please install Docker first.\"\n echo \" Visit: https://docs.docker.com/get-docker/\"\n exit 1\nfi\n\n# Check if Docker Compose is installed\nif ! command -v docker-compose &> /dev/null; then\n echo \"❌ Docker Compose is not installed. Please install Docker Compose first.\"\n exit 1\nfi\n\necho \"✅ Docker and Docker Compose found\"\n\n# Check for .env file\nif [ ! -f \".env\" ]; then\n echo \"⚠️ No .env file found. Creating from template...\"\n cp .env.example .env\n echo \"📝 Please edit .env file with your API keys:\"\n echo \" nano .env\"\n echo \"\"\n echo \"Required keys:\"\n echo \" - OPENAI_API_KEY\"\n echo \" - DEEPSEEK_API_KEY (optional)\"\n echo \" - GOOGLE_API_KEY (optional)\"\n echo \"\"\n read -p \"Press Enter after editing .env file...\"\nfi\n\n# Check if configs/config.json exists\nif [ ! -f \"configs/config.json\" ]; then\n echo \"⚠️ No config.json found. Creating from template...\"\n cp configs/config.example.json configs/config.json\n echo \"📝 Please edit configs/config.json with your API keys:\"\n echo \" nano configs/config.json\"\n echo \"\"\n read -p \"Press Enter after editing config.json...\"\nfi\n\necho \"🔨 Building Docker image...\"\ndocker-compose build\n\necho \"🚀 Starting services...\"\ndocker-compose up -d\n\n# Wait for services to start\necho \"⏳ Waiting for services to start...\"\nsleep 10\n\n# Check if services are running\nif docker-compose ps | grep -q \"Up\"; then\n echo \"✅ Services started successfully!\"\n echo \"\"\n echo \"🌐 Dashboard URLs:\"\n echo \" Local: http://localhost:8502\"\n if [ -f \"nginx.conf\" ]; then\n echo \" Nginx: http://localhost:80\"\n fi\n echo \"\"\n echo \"📊 Service Status:\"\n docker-compose ps\n echo \"\"\n echo \"📝 To view logs:\"\n echo \" docker-compose logs -f\"\n echo \"\"\n echo \"🛑 To stop services:\"\n echo \" docker-compose down\"\nelse\n echo \"❌ Services failed to start. Check logs:\"\n docker-compose logs\n exit 1\nfi"}}}}