Recruitee/mix_docker

How to run the migrations

Closed this issue · 1 comments

I followed the steps from Kovshovik, and got the docker build and release working. I was also able to run the production image and got the following message:

23:48:06.934 [info] Running Hello.Endpoint with Cowboy using http://localhost:8080

However following directions at the distillery for running migrations, how (and from which directory, since /opt/app does not exist as I checked) do i run this command:
bin/hello migrate

Well, if you want to run migration manually you just need to docker exec into the container.
If you want to run them automatically, i.e. on every container start you can use distillery post_start_hook