PhoenixKit.Install.ApplicationSupervisor (phoenix_kit v1.6.15)
View SourceInstallation 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
]