Skip to content

Commit

Permalink
Allow mix ecto.setup from the umbrella root.
Browse files Browse the repository at this point in the history
This PR allows running `mix ecto.setup` from the root of an umbrella project.
  • Loading branch information
Schultzer committed Jan 11, 2024
1 parent 3d609e0 commit 4c35ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer/templates/phx_umbrella/apps/app_name/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ defmodule <%= @app_module %>.MixProject do
defp aliases do
[
setup: ["deps.get"<%= if @ecto do %>, "ecto.setup"<% end %>]<%= if @ecto do %>,
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run #{__DIR__}/priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"]<% end %>
]
Expand Down

0 comments on commit 4c35ddf

Please sign in to comment.