Spaces:
Runtime error
Runtime error
File size: 1,117 Bytes
3951d64 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
@echo off
echo π Deploying Ultra-Fast RAG System to Railway...
REM Check if Railway CLI is installed
railway --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Railway CLI not found. Please install from: https://railway.app/cli
echo Or run: npm install -g @railway/cli
pause
exit /b 1
)
REM Login to Railway (if not already logged in)
echo π Checking Railway authentication...
railway whoami
if %errorlevel% neq 0 (
railway login
)
REM Initialize project (if not already initialized)
if not exist "railway.toml" (
echo π¦ Initializing Railway project...
railway init
)
REM Set environment variables reminder
echo π§ Environment Variables Setup Required:
echo Please set these in Railway dashboard after deployment:
echo - PINECONE_API_KEY=your_pinecone_api_key
echo - GROQ_API_KEY=your_groq_api_key
echo - LANGSMITH_API_KEY=your_langsmith_api_key
echo.
REM Deploy
echo π Deploying to Railway...
railway up
echo β
Deployment complete!
echo π Your API will be available at the Railway-provided URL
echo π Test with: GET https://your-app.railway.app/health
pause
|