Skip to content

Commit

Permalink
migrate to fly v2 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
rphlmr authored Jun 29, 2023
1 parent 33ad790 commit e24bb34
Showing 1 changed file with 37 additions and 34 deletions.
71 changes: 37 additions & 34 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,48 +1,51 @@
# fly.toml app configuration file generated for remix-supa-stripe-stack on 2023-06-29T08:39:34+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "remix-supa-stripe-stack"
primary_region = "cdg"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]
kill_timeout = "5s"

[env]
PORT = "8080"
NODE_ENV = "production"
[experimental]
cmd = ["start.sh"]
entrypoint = ["sh"]
auto_rollback = true

[deploy]
strategy = "bluegreen"
strategy = "bluegreen"

[experimental]
allowed_public_ports = [ ]
auto_rollback = true
cmd = "start.sh"
entrypoint = "sh"
[env]
NODE_ENV = "production"
PORT = "8080"

[[services]]
internal_port = 8_080
processes = [ "app" ]
protocol = "tcp"
script_checks = [ ]

[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
protocol = "tcp"
internal_port = 8080
processes = ["app"]
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1

[[services.ports]]
handlers = [ "http" ]
port = 80
force_https = true
port = 80
handlers = ["http"]
force_https = true

[[services.ports]]
handlers = [ "tls", "http" ]
port = 443
port = 443
handlers = ["tls", "http"]
[services.concurrency]
type = "connections"
hard_limit = 25
soft_limit = 20

[[services.http_checks]]
interval = 10_000
grace_period = "5s"
method = "get"
path = "/healthcheck"
protocol = "http"
restart_limit = 0
timeout = 2_000
tls_skip_verify = false
headers = { }
interval = "10s"
timeout = "2s"
grace_period = "5s"
restart_limit = 0
method = "get"
path = "/healthcheck"
protocol = "http"

0 comments on commit e24bb34

Please sign in to comment.