From 8d156f0dce96e59e69c4f0417ddeac25bd38e8f2 Mon Sep 17 00:00:00 2001 From: artin Date: Mon, 29 Jan 2024 11:56:56 +0800 Subject: [PATCH 1/2] chore: update railway config --- nixpacks.toml | 2 +- railway.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index a8195d5a03..2ce916e6ea 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,4 +1,4 @@ -providers = ["..."] +providers = ["node", "python"] [variables] NODE_ENV = 'production' diff --git a/railway.toml b/railway.toml index 60b8f3069e..2d8b8ad90a 100644 --- a/railway.toml +++ b/railway.toml @@ -4,6 +4,6 @@ nixpacksConfigPath = "nixpacks.toml" [deploy] numReplicas = 1 -sleepApplication = false +sleepApplication = true restartPolicyType = "ON_FAILURE" restartPolicyMaxRetries = 10 From c9477007181c5ccaed328c8b02cbd40b770a9b19 Mon Sep 17 00:00:00 2001 From: artin Date: Mon, 29 Jan 2024 12:06:44 +0800 Subject: [PATCH 2/2] chore: update railway config --- railway.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/railway.toml b/railway.toml index 2d8b8ad90a..0264908183 100644 --- a/railway.toml +++ b/railway.toml @@ -1,9 +1,10 @@ [build] builder = "NIXPACKS" nixpacksConfigPath = "nixpacks.toml" +nixpacksPlan = { "providers" = ["node", "python"] } [deploy] numReplicas = 1 sleepApplication = true restartPolicyType = "ON_FAILURE" -restartPolicyMaxRetries = 10 +restartPolicyMaxRetries = 5