seedex v0.3.0 mix seedex.seed View Source
Mix task to populate database with seed data
The task will load all the files under seeds_path
and seeds_path/MIX_ENV
if it exists,
and will run them sequentially in alphabetic order, regardless of which directory they come from.
Options
--debug
- Enable debug logs--quiet
- Disable all logs--env
- OverrideMIX_ENV
. Useful to add production seeds in staging env.--seeds-path
- Override the settings with the same name from mix config, defaults topriv/repo/seeds
Examples
mix seedex.seed
mix seedex.seed --seeds-path=path/to/seeds --quiet
mix seedex.seed --seeds-path=path/to/seeds --env=staging