mix aurora_meter. install
(Aurora Meter v0.3.1)
View Source
Installs Aurora Meter into a Phoenix (or plain Ecto) application in one step, powered by Igniter:
mix igniter.install aurora_meter
# or, once the dep is in mix.exs:
mix aurora_meter.install --repo MyApp.RepoIt will
- add
config :aurora_meter, repo: ..., pubsub: ..., plans: ...toconfig/config.exs - add
AuroraMeterto your application's children, after the repo and PubSub - create a
MyApp.Plansmodule with a:freeand a:proplan (never overwrites one you have) - generate the migration that delegates to
AuroraMeter.Migration
Options: --repo, --pubsub, --plans (module names; all inferred when omitted).
Without Igniter available the task falls back to generating the migration and printing the remaining steps.