Marcus
:build_embedded and :priv confuses me
I am a little confused as to the documentation and the implications of :build_embedded option and the priv directory.
I know that build_embedded: false creates a symlink to my project priv directory. For my dependencies, symlinks are also created for their private directories.So, in the end I have symlinks form _lbuild/... to my priv and to priv directories under deps.
With build_embedded: true all this symlinks become copies.
Since Elixir 1.5 we do not have the line build_embedded: Mix.env() == :prod in the mix.exs template anymore. With the reasoning we don’t need this line anymore.
And from here on I am confused. Why don’t we need the line anymore? When I build a release I have symlinks that can’t be resolved anymore. I cannot find any reference to this behavior in the documentation. Therefore I think I have misunderstood something. There is an Elixir issue and another post that don’t help me either.
Most Liked
dimitarvp
I remember reading this SO answer a while ago: https://stackoverflow.com/questions/44634367/build-embedded-and-start-permanent-in-elixir
Credit goes to @mbuhot.
Not sure if it helps but that’s all I could find at the time. And apologies, I don’t know about the Elixir >= 1.5 thing.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security









