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
# The one Fly config, for the two demo apps: the app main deploys (the
# deploy job in .github/workflows/ci.yml) and the per-PR previews (the
# review-app action in .github/workflows/preview.yml, which overrides
# the app name with the PR's). DATABASE_URL defaults to :memory:, so
# every deploy starts with only the sample lists demo.ru seeds. Both run
# demo.ru rather than the image's config.ru: nothing writes the
# Remote-User header in front of them, so StubLogin stands in a login,
# and the one demo user's lists are served to anyone who opens the URL.
#
# The app name is Fly's, not GitHub's, so it has to be unique across all
# of Fly and a taken one fails the deploy. ci.yml spells it twice more,
# as FLY_APP to create it on the first deploy and in the environment's
# URL, so a rename here is a rename in three places.
app = 'rank-king'
primary_region = 'sjc'

[build]

[processes]
  app = 'rackup -o 0.0.0.0 demo.ru'

[http_service]
  internal_port = 9292
  force_https = true
  auto_stop_machines = 'stop'
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  memory = '256mb'
  cpu_kind = 'shared'
  cpus = 1