mix drill (drill v1.2.1)
Runs all seeder modules under "priv/YOUR_REPO/seeds. Needs the Repo as an argument.
$ mix drill -r MyApp.Repo
Setting seeds directory is similar to Ecto migration,
- "YOUR_REPO" is the last segment in your repository name. E.g. MyApp.MyRepo will use "priv/my_repo/seeds".
- You can configure a repository to use another directory by specifying the :priv key under the repository configuration. The "seeds" part will be automatically appended to it. For instance, to use "priv/custom_repo/seeds": config :my_app, MyApp.Repo, priv: "priv/custom_repo"
- You can also set the directory by adding the following to your config: config :drill, :directory, "seeds"
- Lastly, you can override the path of the seeds directory by passing the --seeds-path option: $ mix drill -r MyApp.Repo --seeds-path priv/custom_repo/seeds