Skip to content

Instantly share code, notes, and snippets.

@gaynetdinov
Forked from ericentin/migrate.sh
Last active June 16, 2017 06:34
Show Gist options
  • Save gaynetdinov/60673b3fed4098a2ce34ce6d670290c7 to your computer and use it in GitHub Desktop.
Save gaynetdinov/60673b3fed4098a2ce34ce6d670290c7 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