Server Application
Language
- Elixir.
Runtime Context
- Server.
- OTP application and supervision tree.
Purpose
- Starts and supervises the Phoenix server runtime, database repository, telemetry, PubSub, periodic workers, and endpoint.
Key Files
packages/server/mix.exspackages/server/lib/nixstasis/application.expackages/server/lib/nixstasis/repo.expackages/server/lib/nixstasis_web/endpoint.expackages/server/lib/nixstasis_web/telemetry.expackages/server/config/config.exspackages/server/config/runtime.exs
Public Interfaces
Nixstasis.Application.start/2Nixstasis.Application.config_change/3- Mix aliases:
mix setupmix ecto.setupmix phx.servermix testmix openapi.generatemix precommit
Dependencies
Internal
NixstasisWeb.TelemetryNixstasis.RepoNixstasis.E2E.RetentionWorkerNixstasis.Monitoring.OfflineCheckerNixstasisWeb.Endpoint
External
- Phoenix
- Phoenix LiveView
- Ecto/PostgreSQL
- Ash/AshPostgres/AshJsonApi/AshPhoenix
- Bandit
- DNSCluster
- Telemetry
Runtime Notes
Nixstasis.E2E.RetentionWorkeris included only when E2E retention is enabled in app config.- The supervision strategy is
:one_for_onewith supervisor nameNixstasis.Supervisor.
Traceable references:
packages/server/mix.exs:1-113packages/server/lib/nixstasis/application.ex:9-51