-
Notifications
You must be signed in to change notification settings - Fork 62
thesis.install not working in Umbrella project #171
Comments
@rasputin243 is your umbrella application a Phoenix application? |
Yes, created with mix phx.new [APP_NAME] --umbrella.
…On Sun, May 10, 2020, 20:52 Mat Garland ***@***.***> wrote:
***@***.*** is your umbrella application a Phoenix application?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEHQCCE4MX33SRCCV6YU3RQ5K7HANCNFSM4M5PGYVQ>
.
|
Can you share your top level mix.exs file? |
|
This is the mix.exs from the app that uses Thesis
|
I can see that in the the mix.exs from "the app that uses Thesis", in your deps block, thesis is defined as {:thesis, "~> 0.3.4"}, but umbrella deps should be defined like: {:thesis, in_umbrella: true}]. Please try this alternative configuration and let me know how you go. |
I tried that alternative config but was not successful. I tried this on a new umbrella project ( |
Does the thesis.install task support umbrella projects? Based on the error log (described in issue) it seems that the task is expecting the directory structure of a non-umbrella app. |
Sorry I could not be of more assistance, I have not used this app in a while but I would suggest that you're more than likely spot on with your diagnosis. This seems to be a valid issue. Specifically in thesis-phoenix/lib/mix/tasks/thesis.install.ex, in the thesis_templates/0 function the: Stream.map(&replace_yourapp(&1, to_string(Mix.Phoenix.otp_app))) # TODO: better way to infer app path? It's getting a standard app path, not switching between whether it's an umbrella or not. |
I created a new umbrella project, and added Thesis to
MY_APP_umbrella/apps/MY_APP/mix.ex
.When I
mix thesis.install
from the umbrella directory, I see an error about /priv/repo/migrations not existing. When I runmix thesis.install
from the project directory, the migrations are added, but it cannot find ./config/config.ex (which is in the umbrella directory).I was able to follow the README_INSTALL instructions to successfully install Thesis
The text was updated successfully, but these errors were encountered: