Skip to content

If your local seeded database is funky...

M. Matthias Elliott edited this page May 23, 2017 · 6 revisions

So sometimes when some changes you'll need to re-seed your local db. The best way to know this is the case is if docker-compose starts up the app totally normally, but there's no items.

First run docker-compose down.
Next, execute docker-compose run web mix ecto.drop to drop the database.
Lastly run docker-compose run setup to rebuild a test db.

Yeah it ain't pretty but it works.

Clone this wiki locally