Skip to content

Instantly share code, notes, and snippets.

@Diamond
Forked from ericentin/migrate.sh
Created January 29, 2016 15:32
Show Gist options
  • Save Diamond/edbc5a3a101c1b30c685 to your computer and use it in GitHub Desktop.
Save Diamond/edbc5a3a101c1b30c685 to your computer and use it in GitHub Desktop.
How to run Ecto migrations from an exrm release
./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