Hi folks. I’m moving one of my apps from Distillery to mix releases. One thing I’m not sure about, is there a “recommended” way to copy files to target (the web server), I’m talking about files that belong outside the Elixir release where the priv
is not appropriate. Specifically, I have a SystemD unit/system file (/lib/systemd/system/my_app.service
) I want to write to the Linux target system. In Distillery I had something like this:
set overlays: [
{:template, "rel/etc/my_app.service", "etc/my_app.service"},
]
I was putting the unit file inside the release directory and then simlinking to it in a separate step. I guess I could put the unit file in priv
then simlink to it.
Really appreciate any suggestions on this one.
Thanks!