Search documentation of phoenix_kit

# PhoenixKit.Install.ApplicationSupervisor (phoenix_kit v1.6.19)

View Source

Installation helper for adding PhoenixKit supervisor to parent application. Used by `mix phoenix_kit.install` task.

## Important

PhoenixKit.Supervisor MUST start AFTER the Ecto Repo because it depends on the database for loading Settings cache and OAuth configuration.

Incorrect order (will crash):

    children = [
      PhoenixKit.Supervisor,  # ❌ Tries to read Settings from DB
      MyApp.Repo              # ⚠️ DB not ready yet!
    ]

Correct order:

    children = [
      MyApp.Repo,             # ✅ Start DB first
      PhoenixKit.Supervisor   # ✅ Then PhoenixKit
    ]

# Summary

## Functions

add_supervisor(igniter)

# Functions

# add_supervisor(igniter)