PhoenixKit.WebsiteAccess.Environment (phoenix_kit v2.22.0)

Copy Markdown View Source

How this install is running — shown on the Website access page so the admin can tell a dev box from the live site, and offered a preset. It never switches anything on by itself.

Summary

Types

t()

@type t() :: %{
  runtime: :release | :mix,
  mix_env: String.t() | nil,
  hostname: String.t(),
  site_url: String.t() | nil,
  looks_like_dev?: boolean(),
  reasons: [{:mix_env | :hostname | :site_url, String.t()}]
}

Functions

read()

@spec read() :: t()