mirror of
https://github.com/openai/whisper.git
synced 2025-11-23 22:15:58 +00:00
fix: Consolidate nixpacks.toml to repo root for proper Railway backend deployment
This commit is contained in:
parent
bb53f17a73
commit
e7fcd4bc08
@ -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"
|
|
||||||
@ -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
11
nixpacks.toml
Normal 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"
|
||||||
Loading…
x
Reference in New Issue
Block a user