Moving from Fly.io.

Your fly.toml imports as it is written: processes, mounts and the release command.

  1. Connect a server

    Install the agent. It connects out to the panel.

  2. Import

    In the repository, run yawl import fly. Read the notes, then run it again with --apply.

  3. Set the secrets

    List them with fly secrets list, set each with yawl env set, then yawl deploy.

app = "shop"
primary_region = "ams"

[build]

[deploy]
  release_command = "bin/rails db:migrate"

[env]
  RAILS_ENV = "production"
  PORT = "3000"

[processes]
  app = "bin/rails server -b 0.0.0.0"
  worker = "bundle exec sidekiq"

[http_service]
  internal_port = 3000
  force_https = true
  processes = ["app"]

  [[http_service.checks]]
    path = "/up"

[[mounts]]
  source = "shop_data"
  destination = "/data"
  processes = ["app"]

[[vm]]
  size = "shared-cpu-1x"
$ yawl import fly --server hel1
Added shop (web).
Added shop-worker (worker).
Note: shop: volume shop-data at /data starts empty; copy the data from Fly volume shop_data into it once it runs.
Note: shop: PORT is left out; Yawl sets it to the service's port.
Note: shop-worker: PORT is left out; Yawl sets it to the service's port.
Note: shop: primary_region is not carried; Yawl runs on your server.
Note: shop: vm is not carried; Yawl runs on your server; set cpu and memory in yawl.yaml.
Note: secrets, Fly Postgres, regions and machine sizes are not in fly.toml; list the secrets with fly secrets list and set each with yawl env set.
Wrote yawl.yaml. Next: yawl apply, then set the variables:
  yawl env set shop RAILS_ENV
  yawl env set shop-worker RAILS_ENV

What becomes what

AreaFly.ioIn Yawl
AppappThe service's name.
[build] imageRuns that image. Without one, the app is built from the repository.
[http_service] internal_portA web service on that port. Without [http_service], the first [[services]] port.
[processes]The process [http_service] names, or app, is the web service. Each other is a worker named <app>-<process>.
[deploy] release_commandrelease. It runs on the new image before it starts.
[[http_service.checks]] pathhealth_path.
Settings[env]Variables, on every process. PORT is left out: Yawl sets it.
[mounts]A volume at destination, named after source. It starts empty.
Not carriedSecretsNot in fly.toml. The notes say how to list them.
Fly PostgresNot in fly.toml.
primary_region vmYawl runs on your server. Set cpu and memory in yawl.yaml.