Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with mix admin.install on Phoenix 1.3 #424

Open
katbow opened this issue Dec 11, 2017 · 0 comments
Open

Error with mix admin.install on Phoenix 1.3 #424

katbow opened this issue Dec 11, 2017 · 0 comments

Comments

@katbow
Copy link

katbow commented Dec 11, 2017

This is for the phx-1.3 branch.

To reproduce:

  • Add ex_admin to the project with {:ex_admin, github: "smpallen99/ex_admin", branch: "phx-1.3"}
  • Add the following to your /config/config.exs:
config :ex_admin,
  repo: MyProject.Repo,
  module: MyProjectWeb,
  modules: [
    MyProjectWeb.ExAdmin.Dashboard,
  ]
  • mix do deps.get, deps.compile
  • mix admin.install

Returned error is:

** (RuntimeError) Could not find web path 'lib/app_web_web'.
    lib/mix/utils.ex:24: Mix.ExAdmin.Utils.web_path/0
    lib/mix/tasks/admin.install.ex:230: Mix.Tasks.Admin.Install.do_dashboard/1
    lib/mix/tasks/admin.install.ex:55: Mix.Tasks.Admin.Install.do_install/1
    (mix) lib/mix/task.ex:301: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:75: Mix.CLI.run_task/2

Note the 'lib/app_web_web' on the first line of the error.
In lib/mix/utils.ex:24 it appended an extra _web, however Mix.Phoenix.otp_app should already return this as app_web.

Started fix in #423, but needs more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant