Hello,
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 https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "app"
primary_region = "fra"
kill_signal = "SIGTERM"
[build]
[deploy]
release_command = "/app/bin/migrate"
strategy = "bluegreen"
[env]
DNS_CLUSTER_QUERY = "dnscluster"
PHX_HOST = host"
PORT = "8080"
PRIMARY_REGION = "fra"
RELEASE_COOKIE = "cookie"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 2
processes = ["app"]
[http_service.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 1000
[[http_service.checks]]
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.
Thanks.