Skip to content

Instantly share code, notes, and snippets.

View gaynetdinov's full-sized avatar

Damir Gainetdinov gaynetdinov

  • Zendesk
  • Berlin, Germany
View GitHub Profile
@gaynetdinov
gaynetdinov / migrate.sh
Last active June 16, 2017 06:34 — forked from ericentin/migrate.sh
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}]]."
# => []