distillery - Do Ecto migration from a release of an elixir app -


i've made release of elixir application.
starts run supervised task using db when app lunched.

when db not migrated, task keep error , app terminated.

i read http://blog.firstiwaslike.com/elixir-deployments-with-distillery-running-ecto-migrations/, https://hexdocs.pm/distillery/running-migrations.html, , tried implement migration function following them, failed because app needs started load config of app , make command terminated.

when run application.get_all_env(:my_app) without start app, returns empty list []. there anyway run ecto.migrator.run(myapp.repo, path, :up, all: true) without start app?

it enough load application application.load(:my_app) have access env - doesn't need started.

a detailed guide on running migrations releases available in distillery documentation.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -