Marcus

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

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.

Where Next?

Popular in Questions Top

jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54921 245
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement