mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
2.4 KiB
2.4 KiB
Railway Deployment - Quick Start (5 Minutes)
Deploy your Farsi Transcriber to Railway in just 5 minutes! 🚀
What You'll Get
✅ Your app live online ✅ Free $5/month credit ✅ 24/7 uptime ✅ Automatic scaling ✅ No credit card needed (free tier)
Step 1: Create Railway Account (2 min)
- Go to https://railway.app
- Click "Login with GitHub"
- Authorize with your GitHub account
- Done! You get $5 free credit ✅
Step 2: Create Backend Service (2 min)
- Click "Create New Project"
- Select "GitHub Repo"
- Find your whisper fork
- Railway auto-detects Python project
- Root Directory:
farsi_transcriber_web/backend - Click Deploy
- Wait 2-3 minutes for deployment
- Copy the URL that appears (e.g.,
https://farsi-api-xxx.railway.app)
Step 3: Create Frontend Service (1 min)
- In Railway project, click "New Service" → "GitHub Repo"
- Select whisper again
- Root Directory:
farsi_transcriber_web - Click Deploy
- Wait 3-5 minutes for build and deployment
Step 4: Connect Frontend to Backend (Bonus step - 1 min)
- In Railway, select frontend service
- Go to Variables
- Edit
VITE_API_URLand paste your backend URL from Step 2 - Click Deploy to redeploy with correct API URL
That's It! 🎉
Your app is now live! Click the frontend service to see your live URL.
Example URLs:
- Frontend:
https://farsi-transcriber-prod.railway.app - Backend:
https://farsi-api-prod.railway.app
Test Your App
- Click your frontend URL
- Add a file
- Click Transcribe
- Wait for transcription
- Export results
Detailed Guide
For more details, see: farsi_transcriber_web/RAILWAY_DEPLOYMENT.md
Cost
- First 3 months: FREE ($5/month credit)
- After that: ~$2-3/month for personal use
- Can upgrade to paid tier for more resources
Common Issues
"API connection failed"
- Make sure backend URL is correct in frontend variables
- Redeploy frontend after updating API URL
"Model not loaded"
- Wait 1-2 minutes on first transcription
- Model downloads on first use
"Build failed"
- Check Railway logs for errors
- Ensure all files are committed
Support
For detailed setup help, see: farsi_transcriber_web/RAILWAY_DEPLOYMENT.md
Your Farsi Transcriber is now online! Share the URL with anyone! 🌐