From 12dc7427e9628ce0c5edf6c6cd02853bd3dcffd0 Mon Sep 17 00:00:00 2001 From: lanvent Date: Fri, 2 Jun 2023 22:15:20 +0800 Subject: [PATCH] make railway happy --- nixpacks.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index d64e955..627d2e7 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,7 +1,7 @@ -providers = ['python'] - [phases.setup] nixPkgs = ['python310'] -cmds = ['apt-get update','apt-get install -y --no-install-recommends ffmpeg espeak libavcodec-extra','python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements-optional.txt'] +cmds = ['apt-get update','apt-get install -y --no-install-recommends ffmpeg espeak libavcodec-extra'] +[phases.install] +cmds = ['python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt && pip install -r requirements-optional.txt'] [start] cmd = "python ./app.py" \ No newline at end of file