From e7fcd4bc084ddb1347fd4918c736113c277b56c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 23 Nov 2025 07:48:16 +0000 Subject: [PATCH] fix: Consolidate nixpacks.toml to repo root for proper Railway backend deployment --- farsi_transcriber_web/backend/nixpacks.toml | 11 ----------- farsi_transcriber_web/nixpacks.toml | 11 ----------- nixpacks.toml | 11 +++++++++++ 3 files changed, 11 insertions(+), 22 deletions(-) delete mode 100644 farsi_transcriber_web/backend/nixpacks.toml delete mode 100644 farsi_transcriber_web/nixpacks.toml create mode 100644 nixpacks.toml diff --git a/farsi_transcriber_web/backend/nixpacks.toml b/farsi_transcriber_web/backend/nixpacks.toml deleted file mode 100644 index e073c53..0000000 --- a/farsi_transcriber_web/backend/nixpacks.toml +++ /dev/null @@ -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" diff --git a/farsi_transcriber_web/nixpacks.toml b/farsi_transcriber_web/nixpacks.toml deleted file mode 100644 index 679aacf..0000000 --- a/farsi_transcriber_web/nixpacks.toml +++ /dev/null @@ -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" diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..700b783 --- /dev/null +++ b/nixpacks.toml @@ -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"