Cogini Blog Articles tagged deploy

Jake Morrison

Running Ecto migrations in a release

In a dev or test environment, we execute the mix ecto.migrate command to run database migrations. When running from a release, the mix command is not available, so we execute Ecto.Migrator.run/4 from code via the release's eval command. Read more…

Jake Morrison

Running Ecto migrations in production releases with Distillery custom commands

In a dev or test environment, we execute the mix ecto.migrate command to run database migrations. When running from a release, the mix command is not available, so we execute Ecto.Migrator.run/4 from code via a Distillery custom command command. Read more…

Categories

Development DevOps Products Programming

Tags