From 519bb626ad296aff8688af144a516d4a35c90226 Mon Sep 17 00:00:00 2001 From: Ivan Saldano Date: Sat, 22 Jul 2023 20:16:51 +0900 Subject: [PATCH] feat: separate fly.toml files for dev and prod --- apps/api/fly-dev.toml | 38 ++++++++++++++++++++++++++++ apps/api/{fly.toml => fly-prod.toml} | 0 2 files changed, 38 insertions(+) create mode 100644 apps/api/fly-dev.toml rename apps/api/{fly.toml => fly-prod.toml} (100%) diff --git a/apps/api/fly-dev.toml b/apps/api/fly-dev.toml new file mode 100644 index 00000000..567bf827 --- /dev/null +++ b/apps/api/fly-dev.toml @@ -0,0 +1,38 @@ +# fly.toml app configuration file generated for project-shelf-dev on 2023-05-06T17:38:07+09:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = "project-shelf-development" +primary_region = "hkg" +kill_signal = "SIGINT" +kill_timeout = "5s" + +[experimental] + auto_rollback = true + +[deploy] + release_command = "npx prisma generate" + +[[services]] + protocol = "tcp" + internal_port = 8080 + processes = ["app"] + + [[services.ports]] + port = 80 + handlers = ["http"] + + [[services.ports]] + port = 443 + handlers = ["tls", "http"] + [services.concurrency] + type = "connections" + hard_limit = 25 + soft_limit = 20 + + [[services.tcp_checks]] + interval = "15s" + timeout = "2s" + grace_period = "1s" + restart_limit = 0 diff --git a/apps/api/fly.toml b/apps/api/fly-prod.toml similarity index 100% rename from apps/api/fly.toml rename to apps/api/fly-prod.toml