fix: Consolidate nixpacks.toml to repo root for proper Railway backend deployment

This commit is contained in:
Claude 2025-11-23 07:48:16 +00:00
parent bb53f17a73
commit e7fcd4bc08
No known key found for this signature in database
3 changed files with 11 additions and 22 deletions

View File

@ -1,11 +0,0 @@
# Nixpacks configuration for Railway deployment
# Ensures ffmpeg is available for Whisper audio processing
[phases.setup]
nixPkgs = ["ffmpeg"]
[phases.install]
cmds = ["pip install -r requirements.txt"]
[start]
cmd = "gunicorn --workers 2 --worker-class sync --timeout 120 --bind 0.0.0.0:$PORT app:app"

View File

@ -1,11 +0,0 @@
# Nixpacks configuration for Railway deployment (Frontend)
# Configures Node.js build and preview server
[phases.install]
cmds = ["npm install"]
[phases.build]
cmds = ["npm run build"]
[start]
cmd = "npm run preview"

11
nixpacks.toml Normal file
View File

@ -0,0 +1,11 @@
# Nixpacks configuration for Railway deployment
# Backend deployment with Whisper and ffmpeg
[phases.setup]
nixPkgs = ["ffmpeg"]
[phases.install]
cmds = ["cd farsi_transcriber_web/backend && pip install -r requirements.txt"]
[start]
cmd = "cd farsi_transcriber_web/backend && gunicorn --workers 2 --worker-class sync --timeout 120 --bind 0.0.0.0:$PORT app:app"