Skip to content

Instantly share code, notes, and snippets.

@craigp
Forked from gaynetdinov/migrate.sh
Created June 16, 2017 06:34
Show Gist options
  • Save craigp/0435a25c7fca086767caf0365e07bd35 to your computer and use it in GitHub Desktop.
Save craigp/0435a25c7fca086767caf0365e07bd35 to your computer and use it in GitHub Desktop.
How to run Ecto migrations from an exrm release
$./bin/my_app rpc Elixir.Application app_dir "[my_app, <<\"/priv/repo/migrations\">>]."
<<"/home/dashboard/uss/lib/my_app-0.0.1/priv/repo/migrations">>
./bin/my_app rpc Elixir.Ecto.Migrator run "['Elixir.MyApp.Repo', <<\"/home/dashboard/uss/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