# \#mix-release

**URL:** https://forum.elixirforum.com/tag/mix-release/1610.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [How to: Tweak mix release to work with hot code reloading](https://forum.elixirforum.com/t/how-to-tweak-mix-release-to-work-with-hot-code-reloading/65188)

<div class="topic-metadata">

**Author:** [@rogach](https://forum.elixirforum.com/u/rogach)\
**Replies:** 3\
**Last updated:** [September 18, 2026, 12:39pm UTC](https://forum.elixirforum.com/t/how-to-tweak-mix-release-to-work-with-hot-code-reloading/65188 "2026-09-18T12:39:24Z")

</div>

I’ve spent some time understanding how to do hot code reloading with releases built using mix release, and here I’d like to detail the steps needed, in hopes that it will help someone. So, in order to make hot-reloadabl…

---

## [Release and NIF library](https://forum.elixirforum.com/t/release-and-nif-library/75327)

<div class="topic-metadata">

**Author:** [@jschaeff](https://forum.elixirforum.com/u/jschaeff)\
**Replies:** 3\
**Last updated:** [May 13, 2026, 2:50pm UTC](https://forum.elixirforum.com/t/release-and-nif-library/75327 "2026-05-13T14:50:31Z")

</div>

Hello ! Mix release with NIF in a containser crashes … I can’t find why. If I run the project locally (mix phx.serve) it works. When I build a release locally and run it, it works. When I copy the locally generated r…

---

## [Mix Release remote, stop, restart command are not working](https://forum.elixirforum.com/t/mix-release-remote-stop-restart-command-are-not-working/55018)

<div class="topic-metadata">

**Author:** [@dunker1304](https://forum.elixirforum.com/u/dunker1304)\
**Replies:** 1\
**Last updated:** [May 5, 2026, 2:17pm UTC](https://forum.elixirforum.com/t/mix-release-remote-stop-restart-command-are-not-working/55018 "2026-05-05T14:17:57Z")

</div>

I used mix release for deployment. After building a new version with mix release , I started the system as a daemon with IEx attached (daemon\_iex ). I then checked the process ID of the running system using the pid comma…

---

## [Creating releases with large number of files](https://forum.elixirforum.com/t/creating-releases-with-large-number-of-files/73085)

<div class="topic-metadata">

**Author:** [@jaru01](https://forum.elixirforum.com/u/jaru01)\
**Replies:** 2\
**Last updated:** [October 28, 2025, 4:09am UTC](https://forum.elixirforum.com/t/creating-releases-with-large-number-of-files/73085 "2025-10-28T04:09:41Z")

</div>

I have a large number of images and also allow uploads. It seems mix release is geared toward storing everything in a CDN. Is there no way around this? I would prefer to keep everything locally.

---

## [Bake release version at compiletime](https://forum.elixirforum.com/t/bake-release-version-at-compiletime/72042)

<div class="topic-metadata">

**Author:** [@LukasKnuth](https://forum.elixirforum.com/u/LukasKnuth)\
**Replies:** 4\
**Last updated:** [August 12, 2025, 3:42pm UTC](https://forum.elixirforum.com/t/bake-release-version-at-compiletime/72042 "2025-08-12T15:42:56Z")

</div>

I’m using the standard Dockerfile generated by mix phx.gen.release --docker with a small change: # Compile the release ARG APP\_VERSION RUN mix compile The added ARG expression accepts a Docker build-arg that I supply w…

---

## [Use different \`extra\_applications\` values for releases](https://forum.elixirforum.com/t/use-different-extra-applications-values-for-releases/71714)

<div class="topic-metadata">

**Author:** [@sezaru](https://forum.elixirforum.com/u/sezaru)\
**Replies:** 3\
**Last updated:** [July 16, 2025, 3:04pm UTC](https://forum.elixirforum.com/t/use-different-extra-applications-values-for-releases/71714 "2025-07-16T15:04:39Z")

</div>

I have the following list of apps in my extra\_applications field in mix.exs: def application do \[ mod: {Core.Application, \[\]}, extra\_applications: \[:logger, :runtime\_tools, :google\_maps, :os\_mon, :wx, …

---

## [Locally deploy phoenix liveview using nix](https://forum.elixirforum.com/t/locally-deploy-phoenix-liveview-using-nix/70831)

<div class="topic-metadata">

**Author:** [@water](https://forum.elixirforum.com/u/water)\
**Replies:** 15\
**Last updated:** [May 27, 2025, 10:34am UTC](https://forum.elixirforum.com/t/locally-deploy-phoenix-liveview-using-nix/70831 "2025-05-27T10:34:45Z")

</div>

Are there any known working resources to package using nix and deploy it? I’ve tried: But the basic liveview(mix phx.new) uses heroicons and I get errors when building it. nix build ... \> Running phase: insta…

---

## [App env specific runtime files with Releases](https://forum.elixirforum.com/t/app-env-specific-runtime-files-with-releases/70378)

<div class="topic-metadata">

**Author:** [@nTraum](https://forum.elixirforum.com/u/nTraum)\
**Replies:** 4\
**Last updated:** [April 10, 2025, 6:24pm UTC](https://forum.elixirforum.com/t/app-env-specific-runtime-files-with-releases/70378 "2025-04-10T18:24:22Z")

</div>

I have a Phoenix application that is happily using runtime.exs to configure settings at runtime. The Phoenix app is deployed via a Dockerfile and a mix release. In that phoenix application we set our own app\_env config …

---

## [Basic setup for distributed application using mix release](https://forum.elixirforum.com/t/basic-setup-for-distributed-application-using-mix-release/69282)

<div class="topic-metadata">

**Author:** [@Sorc96](https://forum.elixirforum.com/u/Sorc96)\
**Replies:** 4\
**Last updated:** [February 7, 2025, 3:27pm UTC](https://forum.elixirforum.com/t/basic-setup-for-distributed-application-using-mix-release/69282 "2025-02-07T15:27:49Z")

</div>

I haven’t been able to find a simple example for this. Let’s say we have a regular project with Phoenix that is deployed by building a mix release and copying that to a server. Now if we want to run that application on …

---

## [Avoiding re-compiling via build\_per\_environment: false](https://forum.elixirforum.com/t/avoiding-re-compiling-via-build-per-environment-false/68782)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 9:43am UTC](https://forum.elixirforum.com/t/avoiding-re-compiling-via-build-per-environment-false/68782 "2025-01-17T09:43:06Z")

</div>

I had a question about using build\_per\_environment: false in my mix.exs… I have a simple app that doesn’t have any compile-time configuration, so I thought I could use build\_per\_environment: false so I wouldn’t have to c…

---

## [How to configure iex behavior in Elixir release?](https://forum.elixirforum.com/t/how-to-configure-iex-behavior-in-elixir-release/67901)

<div class="topic-metadata">

**Author:** [@fcbry](https://forum.elixirforum.com/u/fcbry)\
**Replies:** 2\
**Last updated:** [December 5, 2024, 4:42pm UTC](https://forum.elixirforum.com/t/how-to-configure-iex-behavior-in-elixir-release/67901 "2024-12-05T16:42:51Z")

</div>

Long story short, huge domain name, non erlang users. Want to shrink down the width of the prompt as it’s making it difficult for users to enter commands and I’m trying to make the experience as pleasant as possible for …

---

## [Release for unix includes bat script](https://forum.elixirforum.com/t/release-for-unix-includes-bat-script/67094)

<div class="topic-metadata">

**Author:** [@MarcoTrevisiol](https://forum.elixirforum.com/u/MarcoTrevisiol)\
**Replies:** 3\
**Last updated:** [October 30, 2024, 9:04pm UTC](https://forum.elixirforum.com/t/release-for-unix-includes-bat-script/67094 "2024-10-30T21:04:24Z")

</div>

I am releasing a small elixir app with mix release. Since I only need the release to run on a linux machine, I do not need any .bat script. I added the option in mix.exs to only include executable for unix. Yet I am not …

---

## [Elixir release \`myapp remote\` returns \`:nodedown\`](https://forum.elixirforum.com/t/elixir-release-myapp-remote-returns-nodedown/66474)

<div class="topic-metadata">

**Author:** [@ericlathrop](https://forum.elixirforum.com/u/ericlathrop)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 2:04pm UTC](https://forum.elixirforum.com/t/elixir-release-myapp-remote-returns-nodedown/66474 "2024-10-04T14:04:06Z")

</div>

I’ve built a release of my app using mix release. The release is built into a docker container, and deployed, and the app runs fine. When I docker exec -it xxxxxxx bash to get inside the container and run bin/myapp remo…

---

## [Making sure the application is running](https://forum.elixirforum.com/t/making-sure-the-application-is-running/66053)

<div class="topic-metadata">

**Author:** [@AwesomeHunter](https://forum.elixirforum.com/u/AwesomeHunter)\
**Replies:** 3\
**Last updated:** [September 12, 2024, 2:34pm UTC](https://forum.elixirforum.com/t/making-sure-the-application-is-running/66053 "2024-09-12T14:34:32Z")

</div>

Hi! I want to start the release using bin/my\_app start and then call functions using rpc requests. How do I check if the application is running? Does running the start command more than once start the application multip…

---

## [Best practice regarding configuration files for an app (iex -S mix & mix release)](https://forum.elixirforum.com/t/best-practice-regarding-configuration-files-for-an-app-iex-s-mix-mix-release/65872)

<div class="topic-metadata">

**Author:** [@Nihilus-Ex](https://forum.elixirforum.com/u/Nihilus-Ex)\
**Replies:** 2\
**Last updated:** [September 4, 2024, 1:22pm UTC](https://forum.elixirforum.com/t/best-practice-regarding-configuration-files-for-an-app-iex-s-mix-mix-release/65872 "2024-09-04T13:22:39Z")

</div>

Hello everyone ! :wave: I’m new to the forum, even if I used it a lot when learning Elixir I never had the need to ask my own questions. I always found my answers there but not this time. That’s why I’m writing my first…

---

## [Passing arguments to mix release eval/rpc scripts](https://forum.elixirforum.com/t/passing-arguments-to-mix-release-eval-rpc-scripts/65735)

<div class="topic-metadata">

**Author:** [@garrison](https://forum.elixirforum.com/u/garrison)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 5:00pm UTC](https://forum.elixirforum.com/t/passing-arguments-to-mix-release-eval-rpc-scripts/65735 "2024-08-29T17:00:12Z")

</div>

I’m prepping some Phoenix apps for deployment (hype!), and for one of them I would like to have a small CLI script to perform some simple tasks which are security sensitive enough that I’d rather not have them on the adm…

---

## [Release docker & build, NIF for wx not found](https://forum.elixirforum.com/t/release-docker-build-nif-for-wx-not-found/60389)

<div class="topic-metadata">

**Author:** [@christo-ph](https://forum.elixirforum.com/u/christo-ph)\
**Replies:** 13\
**Last updated:** [August 23, 2024, 10:56pm UTC](https://forum.elixirforum.com/t/release-docker-build-nif-for-wx-not-found/60389 "2024-08-23T22:56:19Z")

</div>

After generating a Dockerfile with mix release, and build it with docker build, I am unable to start elixir in the container: =INFO REPORT==== 15-Dec-2023::08:20:17.080211 === application: kernel exited: {{shu…

---

## [Override / customize Dockerfile structure when generating a release](https://forum.elixirforum.com/t/override-customize-dockerfile-structure-when-generating-a-release/65000)

<div class="topic-metadata">

**Author:** [@acrolink](https://forum.elixirforum.com/u/acrolink)\
**Replies:** 2\
**Last updated:** [July 18, 2024, 9:37pm UTC](https://forum.elixirforum.com/t/override-customize-dockerfile-structure-when-generating-a-release/65000 "2024-07-18T21:37:58Z")

</div>

Hi, Is there a way to customize the template used (internally by mix) to generate the Dockerfile when running mix phx.gen.release --docker ? Thank you.

---

## [/rel/overlays script files not being copied in Umbrella](https://forum.elixirforum.com/t/rel-overlays-script-files-not-being-copied-in-umbrella/59266)

<div class="topic-metadata">

**Author:** [@francois1](https://forum.elixirforum.com/u/francois1)\
**Replies:** 3\
**Last updated:** [July 17, 2024, 4:09am UTC](https://forum.elixirforum.com/t/rel-overlays-script-files-not-being-copied-in-umbrella/59266 "2024-07-17T04:09:12Z")

</div>

\<tl;dr\> mix release copies /rel/overlays/bin files mix release foo\_app doesn’t copy /rel/overlays/bin files \</tl;dr\> According to the docs, the files inside /rel/overlays/bin are copied as explained below: The fi…

---

## [How to use preinstalled Erlang on target with releases?](https://forum.elixirforum.com/t/how-to-use-preinstalled-erlang-on-target-with-releases/64838)

<div class="topic-metadata">

**Author:** [@Oliver](https://forum.elixirforum.com/u/Oliver)\
**Replies:** 12\
**Last updated:** [July 15, 2024, 1:33pm UTC](https://forum.elixirforum.com/t/how-to-use-preinstalled-erlang-on-target-with-releases/64838 "2024-07-15T13:33:12Z")

</div>

So, I have an elixir application that originally came bundled with its own ERTS (in a release) to be run on a specific server. The original setup was: build server: Docker image in CI, elixir 1.14.4, OTP 25.3 (x86\_x64…

---

## [Debugging a remote node - how was it and what have I learned](https://forum.elixirforum.com/t/debugging-a-remote-node-how-was-it-and-what-have-i-learned/39488)

<div class="topic-metadata">

**Author:** [@marcin](https://forum.elixirforum.com/u/marcin)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 8:22pm UTC](https://forum.elixirforum.com/t/debugging-a-remote-node-how-was-it-and-what-have-i-learned/39488 "2024-07-11T20:22:39Z")

</div>

This post is intended to be a guide for others, I was running a remote debugger for the first time and appreciate feedback on how I could have made this easier! I’m aware of another post with a tutorial for remote debug…

---

## [How to make a release for a system with erlang installed](https://forum.elixirforum.com/t/how-to-make-a-release-for-a-system-with-erlang-installed/35241)

<div class="topic-metadata">

**Author:** [@jpcaruana](https://forum.elixirforum.com/u/jpcaruana)\
**Replies:** 6\
**Last updated:** [July 9, 2024, 3:40pm UTC](https://forum.elixirforum.com/t/how-to-make-a-release-for-a-system-with-erlang-installed/35241 "2024-07-09T15:40:01Z")

</div>

Hello, I am a bit confused with the release process with mix. I want to deploy my release on a server with erlang installed, but when I run MIX\_ENV=prod mix release I don’t know what files I should take, how to send it…

---

## ["be careful with the instructions you are executing \[rpc\]" Why?](https://forum.elixirforum.com/t/be-careful-with-the-instructions-you-are-executing-rpc-why/30194)

<div class="topic-metadata">

**Author:** [@effinbanjos](https://forum.elixirforum.com/u/effinbanjos)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 2:57am UTC](https://forum.elixirforum.com/t/be-careful-with-the-instructions-you-are-executing-rpc-why/30194 "2024-07-02T02:57:46Z")

</div>

The Mix Release documentation states the following with regards to rpc commands: Another way to run commands is with rpc , which will connect to the system currently running and instruct it to execute the given express…

---

## [Much bigger Docker image size with Elixir 1.17.0 and Erlang/OTP 27.0](https://forum.elixirforum.com/t/much-bigger-docker-image-size-with-elixir-1-17-0-and-erlang-otp-27-0/64187)

<div class="topic-metadata">

**Author:** [@cr0t](https://forum.elixirforum.com/u/cr0t)\
**Replies:** 6\
**Last updated:** [June 20, 2024, 9:01pm UTC](https://forum.elixirforum.com/t/much-bigger-docker-image-size-with-elixir-1-17-0-and-erlang-otp-27-0/64187 "2024-06-20T21:01:21Z")

</div>

I have a small web application here – Lexin Mobi (https://lexin.mobi, GitHub - cr0t/lexin: Swedish Dictionary App · GitHub) – which I deploy via Docker images. There are a couple of scripts (and Dockerfiles) that help me…

---

## [Plug.Crypto error in release task: the table identifier does not refer to an existing ETS table](https://forum.elixirforum.com/t/plug-crypto-error-in-release-task-the-table-identifier-does-not-refer-to-an-existing-ets-table/64198)

<div class="topic-metadata">

**Author:** [@onomated](https://forum.elixirforum.com/u/onomated)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 3:22pm UTC](https://forum.elixirforum.com/t/plug-crypto-error-in-release-task-the-table-identifier-does-not-refer-to-an-existing-ets-table/64198 "2024-06-13T15:22:26Z")

</div>

When attempting to seed data in my release task script, I get an error from Plug.Crypto when generating a token to seed data. I ensure my app is loaded, so don’t know what is preventing Plug.Crypto from being started at…

---

## [How to find the release name during compile time?](https://forum.elixirforum.com/t/how-to-find-the-release-name-during-compile-time/62710)

<div class="topic-metadata">

**Author:** [@sezaru](https://forum.elixirforum.com/u/sezaru)\
**Replies:** 2\
**Last updated:** [April 4, 2024, 4:43pm UTC](https://forum.elixirforum.com/t/how-to-find-the-release-name-during-compile-time/62710 "2024-04-04T16:43:39Z")

</div>

My system has two different releases, I want to change compile time configurations and enable/disable code at compile time depending on which release I’m building. I know I can use the env variable RELEASE\_NAME during r…

---

## [Minimizing OTP release size while keeping type documentation](https://forum.elixirforum.com/t/minimizing-otp-release-size-while-keeping-type-documentation/62589)

<div class="topic-metadata">

**Author:** [@fhunleth](https://forum.elixirforum.com/u/fhunleth)\
**Replies:** 0\
**Last updated:** [March 29, 2024, 3:52pm UTC](https://forum.elixirforum.com/t/minimizing-otp-release-size-while-keeping-type-documentation/62589 "2024-03-29T15:52:02Z")

</div>

I’d recently was asked why you couldn’t get help on types via the IEx t helper with Nerves. The reason is that the type docs are in the BEAM debug information ("Dbgi") chunk and that chunk is stripped to reduce firmware …

---

## [Evaluation code in a "release" not working when including spaces in code](https://forum.elixirforum.com/t/evaluation-code-in-a-release-not-working-when-including-spaces-in-code/62079)

<div class="topic-metadata">

**Author:** [@TimPelgrim](https://forum.elixirforum.com/u/TimPelgrim)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 8:19am UTC](https://forum.elixirforum.com/t/evaluation-code-in-a-release-not-working-when-including-spaces-in-code/62079 "2024-03-05T08:19:16Z")

</div>

I have a running release app and need to do some maintenance by running some Elixir code. This works fine when doing it through iex by calling bin/RELEASE remote and typing in the necessary code, but I want to streamline…

---

## [How to avoid stale overlay files in mix releases](https://forum.elixirforum.com/t/how-to-avoid-stale-overlay-files-in-mix-releases/61776)

<div class="topic-metadata">

**Author:** [@0xb0b](https://forum.elixirforum.com/u/0xb0b)\
**Replies:** 3\
**Last updated:** [February 21, 2024, 9:53am UTC](https://forum.elixirforum.com/t/how-to-avoid-stale-overlay-files-in-mix-releases/61776 "2024-02-21T09:53:30Z")

</div>

I noticed a weird behavior in one of the CI/CD pipeline I’m working on: I removed a file inside rel/overlays, but the CI included it inside the mix release regardless. I’ve looked into it and found out that the release …

---

## [Is there a command to set a Windows service to "Automatic (Delayed Start)"?](https://forum.elixirforum.com/t/is-there-a-command-to-set-a-windows-service-to-automatic-delayed-start/61394)

<div class="topic-metadata">

**Author:** [@itopiz](https://forum.elixirforum.com/u/itopiz)\
**Replies:** 3\
**Last updated:** [February 2, 2024, 10:30am UTC](https://forum.elixirforum.com/t/is-there-a-command-to-set-a-windows-service-to-automatic-delayed-start/61394 "2024-02-02T10:30:21Z")

</div>

I made an Elixir app with mix release that runs on Windows as a service. Because of a erlsrv bug (Windows service fails to start on OS (re)boot · Issue #6076 · erlang/otp · GitHub), I manually set the service to “Automa…

[Next page](https://forum.elixirforum.com/tag/mix-release/1610.md?match_all_tags=true&page=1&tags%5B%5D=mix-release)
