System ENV primary region is nil after deployment


after I deploy using either:

fly deploy -e PRIMARY_REGION=fra

or just simply fly deploy

If i SSH into the server and try to fetch the PRIMARY_REGION system environment, it returns back nil.

Why is that?

here is my fly.toml

# fly.toml app configuration file generated for production-nexus on 2023-11-17T10:14:15+01:00
# See for information about how to use this file.

app = "app"
primary_region = "fra"
kill_signal = "SIGTERM"


  release_command = "/app/bin/migrate"
  strategy = "bluegreen"

  DNS_CLUSTER_QUERY = "dnscluster"
  PHX_HOST = host"
  PORT = "8080"
  RELEASE_COOKIE = "cookie"

  internal_port = 8080
  force_https = true
  auto_stop_machines = false
  auto_start_machines = true
  min_machines_running = 2
  processes = ["app"]
    type = "connections"
    hard_limit = 1000
    soft_limit = 1000
    grace_period = "60s"
    interval = "30s"
    method = "GET"
    timeout = "5s"
    path = "/_healthy"
    tls_skip_verify = false

This problem is only since couple of days / weeks and I could not trace any changes done in the codebase which might lead to this behaviour.


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