mix ex_atlas.install (ExAtlas v0.5.0)

Copy Markdown View Source

Installs ExAtlas into your project.

Run this once after adding {:ex_atlas, "~> 0.2"} to mix.exs:

mix ex_atlas.install

Or use Igniter's installer entry point, which handles the dep addition too:

mix igniter.install atlas

What it does

  • Writes config :ex_atlas, :fly, ... defaults to config/config.exs: dispatcher mode (chosen based on whether phoenix_pubsub is present), DETS storage path under priv/ex_atlas_fly, and the Fly sub-tree enabled: true.
  • Creates priv/ex_atlas_fly/ so DETS has somewhere to write on first run.
  • Adds .gitignore rules for the DETS files (priv/ex_atlas_fly/*.dets).

Idempotent — re-running is safe; mix ex_atlas.upgrade handles version-over-version migrations.