mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
feat: Add Railway configuration for multi-service deployment (frontend + backend)
This commit is contained in:
parent
4fadc2c507
commit
f6f67ccbb8
7
farsi_transcriber_web/.env.production
Normal file
7
farsi_transcriber_web/.env.production
Normal file
@ -0,0 +1,7 @@
|
||||
# Production environment variables for Railway deployment
|
||||
# Set VITE_API_URL in Railway environment variables instead of committing here
|
||||
|
||||
# Default fallback - will be overridden by Railway env var
|
||||
VITE_API_URL=https://your-backend-url.railway.app
|
||||
VITE_APP_NAME=Farsi Transcriber
|
||||
VITE_MAX_FILE_SIZE=500
|
||||
26
railway.toml
Normal file
26
railway.toml
Normal file
@ -0,0 +1,26 @@
|
||||
# Railway configuration for both backend and frontend services
|
||||
# https://docs.railway.app/reference/nixpacks
|
||||
|
||||
[build]
|
||||
builder = "nixpacks"
|
||||
|
||||
# Backend service configuration
|
||||
[[services]]
|
||||
name = "backend"
|
||||
root = "farsi_transcriber_web/backend"
|
||||
|
||||
[services.build]
|
||||
nixPkgs = ["ffmpeg"]
|
||||
|
||||
[services.build.nixPackages]
|
||||
pythonPackages = ["pip"]
|
||||
|
||||
[services.start]
|
||||
cmd = "gunicorn --workers 2 --worker-class sync --timeout 120 --bind 0.0.0.0:$PORT app:app"
|
||||
|
||||
# Frontend service configuration
|
||||
[[services]]
|
||||
name = "frontend"
|
||||
root = "farsi_transcriber_web"
|
||||
buildCommand = "npm install && npm run build"
|
||||
startCommand = "npm run preview"
|
||||
Loading…
x
Reference in New Issue
Block a user