From 834c03359f0c731f4bb5c5cc28b4c4c212044f8f Mon Sep 17 00:00:00 2001 From: lanvent Date: Tue, 28 Mar 2023 05:28:28 +0800 Subject: [PATCH] feat: support railway template --- main.py | 5 ----- nixpacks.toml | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 main.py create mode 100644 nixpacks.toml diff --git a/main.py b/main.py deleted file mode 100644 index b22ebf2..0000000 --- a/main.py +++ /dev/null @@ -1,5 +0,0 @@ -# entry point for online railway deployment -from app import run - -if __name__ == '__main__': - run() \ No newline at end of file diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..3561677 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,7 @@ +providers = ['python'] + +[phases.setup] +nixPkgs = ['python310'] +cmds = ['apt-get update','apt-get install -y --no-install-recommends ffmpeg espeak'] +[start] +cmd = "python ./app.py" \ No newline at end of file