fly deploy bug

app = "lolbot"
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "nrt"
processes = []

[build]
  builder = "heroku/buildpacks:20"

[env]
  PORT = "8080"

[experimental]
  auto_rollback = true

[[services]]
  http_checks = []
  tcp_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443
  [services.script]
    source = "node main.js"

This my TOML setting

but deploy error

Your fly.toml referenced an attribute 'primary_region' but it is unknown. Double check the accepted attributes in fly.toml https://fly.io/docs/reference/configuration

I’ve specified the settings for ‘primary_region’ above.

@noder It looks like you are deploying a V1 App. primary_region attribute is valid for V2 Apps only: App Configuration (fly.toml) · Fly Docs

Please refer to this post if you are interested in trying Apps V2: fly migrate-to-v2 - Automatic migration to Apps V2 (beta)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.