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

Documentation could be more obvious about installation pitfall in :prod #16

Open
eriknaslund opened this issue Aug 25, 2024 · 0 comments

Comments

@eriknaslund
Copy link

The install instructions do indeed mention that you should add the library using only: :dev, runtime: false.
However if you fail to add the dependency just like that you get an error, but only when trying to run your app in the :prod environment (because Mix isn't available).

Kernel pid terminated (application_controller) ("{application_start_failure,hex,{bad_return,{{'Elixir.Hex.Application',start,[normal,[
]]},{'EXIT',{undef,[{'Elixir.Mix.SCM',append,['Elixir.Hex.SCM'],[]},{'Elixir.Hex.Application',start,2,[{file,\"lib/hex/application.ex\
"},{line,9}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,293}]}]}}}}}") 

I'd love it if the README.md could be more explicit about this issue, because it's one of those things that aren't immediately obvious (at least not to me).

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