Specs
primary_region() :: String.t()
Return the configured primary region. Reads and requires an ENV setting for
PRIMARY_REGION
. If not set, it returns "local"
.
Functions and features to help Elixir applications more easily take advantage of the features that Fly.io provides.
Return if the app instance is running in the primary region or not. Boolean result.
Return the configured current region. Reads the FLY_REGION
ENV setting
that's available when deployed on the Fly.io platform. If not set, it returns
"local"
.
Return the configured primary region. Reads and requires an ENV setting for
PRIMARY_REGION
. If not set, it returns "local"
.
Execute the MFA on a node in the primary region.
Return if the app instance is running in the primary region or not. Boolean result.
my_region() :: String.t()
Return the configured current region. Reads the FLY_REGION
ENV setting
that's available when deployed on the Fly.io platform. If not set, it returns
"local"
.
primary_region() :: String.t()
Return the configured primary region. Reads and requires an ENV setting for
PRIMARY_REGION
. If not set, it returns "local"
.
Execute the MFA on a node in the primary region.