mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 06:26:03 +00:00
Backend Updates: - Add lazy loading for Whisper model (faster startup) - Use environment variables for port and config - Add root endpoint for health checking - Configure CORS for production - Add tempfile support for uploads - Update to support gunicorn production server - Add Procfile for Heroku/Railway compatibility Frontend Updates: - Optimize Vite build configuration - Add production build optimizations - Enable minification and code splitting - Configure preview server for production Configuration: - Add .env.example files for both frontend and backend - Create railway.toml for Railway deployment - Add Procfile for process management - Setup environment variable templates Documentation: - Create comprehensive RAILWAY_DEPLOYMENT.md guide - Include step-by-step deployment instructions - Add troubleshooting section - Include cost breakdown - Add monitoring and maintenance guide Dependencies: - Add gunicorn for production WSGI server Ready for Railway deployment with: - Free $5/month credit - Automatic scaling - 24/7 uptime - Custom domain support (optional)
14 lines
351 B
Plaintext
14 lines
351 B
Plaintext
# Frontend environment variables
|
|
# Copy this to .env.local and update with your values
|
|
|
|
# API URL for the backend
|
|
# Local development: http://localhost:5000
|
|
# Railway production: https://your-backend-app.railway.app
|
|
VITE_API_URL=http://localhost:5000
|
|
|
|
# Application name
|
|
VITE_APP_NAME=Farsi Transcriber
|
|
|
|
# Max file size (in MB)
|
|
VITE_MAX_FILE_SIZE=500
|