Last active
October 9, 2023 09:28
-
-
Save ericentin/90cc36d29c2a2a5d4629 to your computer and use it in GitHub Desktop.
How to run Ecto migrations from an exrm release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./bin/turbo rpc Elixir.Ecto.Storage up "['Elixir.Turbo.Repo']." | |
./bin/my_app rpc Elixir.Mix.Ecto migrations_path "['Elixir.MyApp.Repo']." | |
# => <<"/opt/my_app/production/rel/my_app/lib/my_app-0.0.1/priv/repo/migrations">> | |
./bin/my_app rpc Elixir.Ecto.Migrator run "['Elixir.MyApp.Repo', <<\"/opt/my_app/production/rel/my_app/lib/my_app-0.0.1/priv/repo/migrations\">>, up, [{all, true}]]." | |
# => [] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually getting migrations folder using
Mix.Ecto
didn't work for me. So I forked this gist with my approach https://gist.github.com/gaynetdinov/60673b3fed4098a2ce34ce6d670290c7