mix forja.install
(Forja v0.4.0)
View Source
Install and configure Forja for use in an application.
This task will:
- Generate the
forja_eventsdatabase migration - Add
Forjato your application's supervision tree - Add
:forja_eventsand:forja_reconciliationqueues to your Oban config - Optionally configure the ReconciliationWorker crontab
Example
Install using the default Ecto repo:
mix forja.install
Specify a repo explicitly:
mix forja.install --repo MyApp.Repo
Skip reconciliation crontab setup:
mix forja.install --no-reconciliation
Options
--repoor-r- Specify the Ecto repo to use (auto-detected if not provided)--reconciliationor-R- Include ReconciliationWorker crontab (default: true)--pubsubor-p- Specify the PubSub module (auto-inferred if not provided)