chore: prepare for deployment
This commit is contained in:
parent
cb78f82d6d
commit
08c08a402c
8 changed files with 83 additions and 2 deletions
44
fly.toml
Normal file
44
fly.toml
Normal file
|
@ -0,0 +1,44 @@
|
|||
# fly.toml app configuration file generated for ecoffee on 2025-03-11T20:11:31+01:00
|
||||
#
|
||||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||
#
|
||||
|
||||
app = 'ecoffee'
|
||||
primary_region = 'fra'
|
||||
console_command = '/rails/bin/rails console'
|
||||
|
||||
[build]
|
||||
|
||||
[env]
|
||||
PORT = '8080'
|
||||
|
||||
[processes]
|
||||
app = './bin/rails server'
|
||||
|
||||
[deploy]
|
||||
release_command = "./bin/rails db:prepare"
|
||||
|
||||
[http_service]
|
||||
internal_port = 8080
|
||||
force_https = true
|
||||
auto_stop_machines = 'stop'
|
||||
auto_start_machines = true
|
||||
min_machines_running = 1
|
||||
processes = ['app']
|
||||
|
||||
[[http_service.checks]]
|
||||
interval = '10s'
|
||||
timeout = '2s'
|
||||
grace_period = '5s'
|
||||
method = 'GET'
|
||||
path = '/up'
|
||||
protocol = 'http'
|
||||
tls_skip_verify = false
|
||||
|
||||
[http_service.checks.headers]
|
||||
X-Forwarded-Proto = 'https'
|
||||
|
||||
[[vm]]
|
||||
memory = '1gb'
|
||||
cpu_kind = 'shared'
|
||||
cpus = 1
|
Loading…
Add table
Add a link
Reference in a new issue