From 1080bc273d7e6f03c3194573e82584cb24f38d7f Mon Sep 17 00:00:00 2001 From: Nat Budin Date: Mon, 11 Sep 2023 14:38:39 -0700 Subject: [PATCH] Add fly config --- fly.toml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 fly.toml diff --git a/fly.toml b/fly.toml new file mode 100644 index 00000000..1d894146 --- /dev/null +++ b/fly.toml @@ -0,0 +1,33 @@ +# fly.toml app configuration file generated for journeysurveys on 2023-09-11T11:21:53-07:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = "journeysurveys" + +[build] +image = "ghcr.io/nbudin/journey:latest" + +[deploy] +release_command = "bundle exec rake db:migrate" +strategy = "rolling" + +[env] +ILLYAN_URL = "https://accounts.sugarpond.net" +PORT = "3000" +RAILS_LOG_TO_STDOUT = "1" +SUGAR_POND_BRANDING = "1" + +[http_service] +auto_start_machines = true +auto_stop_machines = true +internal_port = 3000 +min_machines_running = 0 + +# Does not work with autoscaling to zero +# [[http_service.checks]] +# grace_period = "3s" +# interval = "30s" +# method = "GET" +# path = "/questionnaires" +# timeout = "5s"