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

Problems on umbrella app #6

Open
gabrielmancini opened this issue Oct 20, 2023 · 1 comment
Open

Problems on umbrella app #6

gabrielmancini opened this issue Oct 20, 2023 · 1 comment

Comments

@gabrielmancini
Copy link
Contributor

Hello Fellows,

My phoenix project is a umbrella project, so i have the project folder tree in this shape:

~/
~/mix.exs
~/apps
~/apps/myproject
~/apps/myproject_xxx
~/apps/myproject_web
~/config
~/deps

and the config must be something like this:

config :iconify_ex,
  mode: :set,
  generated_icon_static_path: "./apps/myproject_web/priv/static/images/icons",
  generated_icon_static_url: "/images/icons"

and i run the mix phx.server in ~/ folder all works fine because it creates

, but
it creates an folder structure inside all my apps like:

~/apps/myproject_web/priv/static/images/icons # <-- the right one, and the follow wrongs
~/apps/myproject_web/apps/myproject_web/priv/static/images/icons
~/apps/myproject_xxx/apps/myproject_xxx/priv/static/images/icons
~/apps/myproject/apps/myproject/priv/static/images/icons

anybody have any tip for me to change something and send a PR to this?

@mayel
Copy link
Member

mayel commented Oct 26, 2023

As a workaround (though of course a fix would be welcome!), you can simply put something like this in your config:

umbrella_root = File.cwd!()

config :iconify_ex,
  generated_icon_modules_path: "#{umbrella_root}/lib/components/icons",
  generated_icon_static_path: "#{umbrella_root}/assets/static/images/icons"

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

2 participants