Installs Imison in a Phoenix app: its config, its place in the supervision tree, the migration that creates its tables and the dashboard route.
Example
mix imison.install
mix ecto.migrate
mix igniter.install imison adds the dependency and runs this task in one step.
Changes
config/config.exs:repo,pubsub(the endpoint'spubsub_server) and, when the app has aMailermodule,mailerconfig/runtime.exs: the production login, from theIMISON_USERandIMISON_PASSWORDenvironment variablesconfig/dev.exs: the loginadminwith a password generated at install timeconfig/test.exs:enabled: falseand a test login- the application's children:
{Imison, Application.fetch_env!(:my_app, Imison)}after the repo and the PubSub - a migration
add_imisoncallingImison.Migration - the router:
import Imison.Web.Routerandimison_dashboard "/errors"in a scope piped through:browser .formatter.exs::imisoninimport_deps
A change that is already there is skipped, so running the task again changes nothing.