-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfly.toml
73 lines (63 loc) · 1.51 KB
/
fly.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# fly.toml app configuration file generated for fountainpencompanion on 2024-12-25T16:21:38+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'fountainpencompanion'
primary_region = 'ewr'
console_command = '/app/bin/rails console'
swap_size_mb = 512
[build]
build-target = 'prod'
[deploy]
release_command = 'bundle exec rake db:migrate db:seed'
[env]
BUNDLE_WITHOUT = "development:test"
NEW_RELIC_BROWSER_MONITORING_AUTO_INSTRUMENT = "false"
NEW_RELIC_LOG = "stdout"
RACK_ENV = "production"
RACK_TIMEOUT_SERVICE_TIMEOUT = "25"
RACK_TIMEOUT_WAIT_TIMEOUT = "30"
RAILS_ENV = "production"
RAILS_LOG_TO_STDOUT = "enabled"
RAILS_MAX_THREADS = "5"
RAILS_MIN_THREADS = "4"
RAILS_SERVE_STATIC_FILES = "enabled"
REDIS_PROVIDER = "REDIS_SIDEKIQ_URL"
SIDEKIQ_CONCURRENCY = "5"
WEB_CONCURRENCY = "2"
[processes]
web = "bundle exec puma"
worker = "bundle exec sidekiq"
[http_service]
internal_port = 3000
processes = ["web"]
force_https = true
auto_stop_machines = "suspend"
auto_start_machines = true
min_machines_running = 5
[http_service.concurrency]
type = "requests"
soft_limit = 3
hard_limit = 10
[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
timeout = "5s"
path = "/"
[[statics]]
guest_path = "/app/public/assets"
url_prefix = "/assets"
[[statics]]
guest_path = "/app/public/images"
url_prefix = "/images"
[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1
processes = ["worker"]
[[vm]]
memory = '1GB'
cpu_kind = 'shared'
cpus = 4
processes = ["web"]