# \#application

**URL:** https://forum.elixirforum.com/tag/application/1511.md

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

---

## [Application module \`start\` function not called?](https://forum.elixirforum.com/t/application-module-start-function-not-called/72945)

<div class="topic-metadata">

**Author:** [@s-stepien](https://forum.elixirforum.com/u/s-stepien)\
**Replies:** 13\
**Last updated:** [October 17, 2025, 12:39pm UTC](https://forum.elixirforum.com/t/application-module-start-function-not-called/72945 "2025-10-17T12:39:34Z")

</div>

Hi I have fairly complicated Phoenix app (but it doubt that this is Phoenix related issue?). In it I have the MyApp.Application module with start(\_type, \_args) function. I noticed today (after long time without working …

---

## [Any tips on building web apps with Elixir?](https://forum.elixirforum.com/t/any-tips-on-building-web-apps-with-elixir/72083)

<div class="topic-metadata">

**Author:** [@Amelia](https://forum.elixirforum.com/u/Amelia)\
**Replies:** 4\
**Last updated:** [August 15, 2025, 1:18pm UTC](https://forum.elixirforum.com/t/any-tips-on-building-web-apps-with-elixir/72083 "2025-08-15T13:18:26Z")

</div>

Hey All, I have been diving into Elixir & I am impressed with its speed scalability & fault tolerance features; I am planning to build a web application but I am still figuring out the best approach for structuring the …

---

## [Validate runtime config on application start](https://forum.elixirforum.com/t/validate-runtime-config-on-application-start/72029)

<div class="topic-metadata">

**Author:** [@LukasKnuth](https://forum.elixirforum.com/u/LukasKnuth)\
**Replies:** 1\
**Last updated:** [August 11, 2025, 11:58am UTC](https://forum.elixirforum.com/t/validate-runtime-config-on-application-start/72029 "2025-08-11T11:58:29Z")

</div>

In my config/runtime.exs I have the following: timezone = System.get\_env("TZ") || "Etc/UTC" unless Timex.is\_valid\_timezone?(timezone) do raise """ The timezone specified in the TZ environment variable is invalid. …

---

## [WeCraft - an opensource build in public platform made with Phoenix](https://forum.elixirforum.com/t/wecraft-an-opensource-build-in-public-platform-made-with-phoenix/71848)

<div class="topic-metadata">

**Author:** [@laibulle](https://forum.elixirforum.com/u/laibulle)\
**Replies:** 6\
**Last updated:** [August 5, 2025, 9:45pm UTC](https://forum.elixirforum.com/t/wecraft-an-opensource-build-in-public-platform-made-with-phoenix/71848 "2025-08-05T21:45:34Z")

</div>

:rocket: Introducing WeCraft: A Build-in-Public Platform Built with Phoenix LiveView Hey Elixir community! :waving\_hand: I’m excited to share WeCraft, an open-source platform I’ve been building that connects technical f…

---

## [How-to: Async tests with application env.](https://forum.elixirforum.com/t/how-to-async-tests-with-application-env/67222)

<div class="topic-metadata">

**Author:** [@Asd](https://forum.elixirforum.com/u/Asd)\
**Replies:** 1\
**Last updated:** [March 9, 2025, 7:28pm UTC](https://forum.elixirforum.com/t/how-to-async-tests-with-application-env/67222 "2025-03-09T19:28:44Z")

</div>

How to test with application env in async: true It is quite common for Elixir application to be configured via application env (which is set in config/ files and accessed with Application.get\_env and such). However, this…

---

## [How do I exit the BEAM VM with exit code 0 on top-level supervisor auto-shutdown?](https://forum.elixirforum.com/t/how-do-i-exit-the-beam-vm-with-exit-code-0-on-top-level-supervisor-auto-shutdown/69732)

<div class="topic-metadata">

**Author:** [@bvobart](https://forum.elixirforum.com/u/bvobart)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 4:12pm UTC](https://forum.elixirforum.com/t/how-do-i-exit-the-beam-vm-with-exit-code-0-on-top-level-supervisor-auto-shutdown/69732 "2025-03-03T16:12:26Z")

</div>

Hi Elixir community :blush: I’m having some trouble getting the BEAM VM to exit with exit code 0 upon auto-shutdown of the top-level supervisor. For context, I’m writing an application that runs a cron job in cloud env…

---

## [How to stop mix to hard code a Node name for application release?](https://forum.elixirforum.com/t/how-to-stop-mix-to-hard-code-a-node-name-for-application-release/69553)

<div class="topic-metadata">

**Author:** [@UlrikHD](https://forum.elixirforum.com/u/UlrikHD)\
**Replies:** 3\
**Last updated:** [February 23, 2025, 7:50am UTC](https://forum.elixirforum.com/t/how-to-stop-mix-to-hard-code-a-node-name-for-application-release/69553 "2025-02-23T07:50:48Z")

</div>

I got an application where I’d like to start the node with a (long) name dynamically determined during runtime based on the computer’s IP address. However when I run mix release the application is given a node at compile…

---

## [How to shutdown MyApp.Repo after a Broadway pipeline has drained](https://forum.elixirforum.com/t/how-to-shutdown-myapp-repo-after-a-broadway-pipeline-has-drained/67182)

<div class="topic-metadata">

**Author:** [@barrelltechgh](https://forum.elixirforum.com/u/barrelltechgh)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 6:51pm UTC](https://forum.elixirforum.com/t/how-to-shutdown-myapp-repo-after-a-broadway-pipeline-has-drained/67182 "2024-11-01T18:51:49Z")

</div>

I have a Broadway Pipeline with a custom producer that is just using postgres to store tasks in normal table. When I restart my application, I’m losing access to MyApp.Repo in different ways. Sometimes individual Proces…

---

## [Change config compile env variables during ExUnit test](https://forum.elixirforum.com/t/change-config-compile-env-variables-during-exunit-test/53526)

<div class="topic-metadata">

**Author:** [@softodrom](https://forum.elixirforum.com/u/softodrom)\
**Replies:** 15\
**Last updated:** [October 20, 2024, 7:24am UTC](https://forum.elixirforum.com/t/change-config-compile-env-variables-during-exunit-test/53526 "2024-10-20T07:24:15Z")

</div>

Hi, I have some compile env and I want to change their values in some specific test cases and then change them back. Is there any way of doing that? recompile/1 is not working as this function simply recompiles Elixir …

---

## [Application.stop/1 calls not being reported by :error\_logger in Elixir 1.15.0](https://forum.elixirforum.com/t/application-stop-1-calls-not-being-reported-by-error-logger-in-elixir-1-15-0/65891)

<div class="topic-metadata">

**Author:** [@alanj853](https://forum.elixirforum.com/u/alanj853)\
**Replies:** 0\
**Last updated:** [September 5, 2024, 9:14am UTC](https://forum.elixirforum.com/t/application-stop-1-calls-not-being-reported-by-error-logger-in-elixir-1-15-0/65891 "2024-09-05T09:14:01Z")

</div>

Hi, I have noticed that Application.stop/1 calls are no longer being reported by erlang’s :error\_logger in the same way with version 1.15.0. It was working with version 1.14.5. See this sample module for an example. I …

---

## [Otp application and libraries discussion](https://forum.elixirforum.com/t/otp-application-and-libraries-discussion/35873)

<div class="topic-metadata">

**Author:** [@cevado](https://forum.elixirforum.com/u/cevado)\
**Replies:** 6\
**Last updated:** [August 3, 2024, 12:57pm UTC](https://forum.elixirforum.com/t/otp-application-and-libraries-discussion/35873 "2024-08-03T12:57:02Z")

</div>

So I’ve written an article discussing the difference between “applications” and “libraries” as OTP applications. I’ve tried to differentiate between them in the context of OTP, and I’d like to know what people think abo…

---

## [Application with two instances of the same GenServer](https://forum.elixirforum.com/t/application-with-two-instances-of-the-same-genserver/58553)

<div class="topic-metadata">

**Author:** [@RooSoft](https://forum.elixirforum.com/u/RooSoft)\
**Replies:** 3\
**Last updated:** [September 28, 2023, 7:50pm UTC](https://forum.elixirforum.com/t/application-with-two-instances-of-the-same-genserver/58553 "2023-09-28T19:50:17Z")

</div>

I am having a simple Phoenix Liveview app. The app should have two actors, let’s say Alice and Bob. Both should be instances of the same GenServer module, as they’re gonna receive events and obviously have the same func…

---

## [Start Application dependencies before main Applciation is started](https://forum.elixirforum.com/t/start-application-dependencies-before-main-applciation-is-started/58499)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 6\
**Last updated:** [September 26, 2023, 2:15pm UTC](https://forum.elixirforum.com/t/start-application-dependencies-before-main-applciation-is-started/58499 "2023-09-26T14:15:40Z")

</div>

Background I am trying to ensure an application’s dependency is started before the main application is, whilst also having said dependency as part of the Supervision Tree (as a child). Problem Currently I have this in a…

---

## [Running elixir from Erlang release](https://forum.elixirforum.com/t/running-elixir-from-erlang-release/47400)

<div class="topic-metadata">

**Author:** [@flodihn](https://forum.elixirforum.com/u/flodihn)\
**Replies:** 5\
**Last updated:** [March 16, 2023, 6:47am UTC](https://forum.elixirforum.com/t/running-elixir-from-erlang-release/47400 "2023-03-16T06:47:50Z")

</div>

Hello, I am creating a project where I mix Erlang and Elixir applications. I can do this when running Erlang by executing erl manually from my bash shell and adding the path to the elixir installation using the Erlangs …

---

## [Mox with Applications -  to start or not to start](https://forum.elixirforum.com/t/mox-with-applications-to-start-or-not-to-start/44156)

<div class="topic-metadata">

**Author:** [@micah](https://forum.elixirforum.com/u/micah)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 6:59pm UTC](https://forum.elixirforum.com/t/mox-with-applications-to-start-or-not-to-start/44156 "2023-02-16T18:59:48Z")

</div>

Hello all! I’m in the process of writing an application with a couple moving parts, but unit testing it is making me question everything. My application supervises three processes: children = \[ {DynamicSupervis…

---

## [How to start a GenServer-based Application before other Applications?](https://forum.elixirforum.com/t/how-to-start-a-genserver-based-application-before-other-applications/49843)

<div class="topic-metadata">

**Author:** [@vschroeder](https://forum.elixirforum.com/u/vschroeder)\
**Replies:** 4\
**Last updated:** [August 28, 2022, 4:57pm UTC](https://forum.elixirforum.com/t/how-to-start-a-genserver-based-application-before-other-applications/49843 "2022-08-28T16:57:50Z")

</div>

Hey there! This probably has a very easy answer, but I’m already too many hours into this and need some help. In this scenario, we have several separated git repositories, one being a library to provide configuration va…

---

## [Starting an application callback module only if the application is the top-level one](https://forum.elixirforum.com/t/starting-an-application-callback-module-only-if-the-application-is-the-top-level-one/49682)

<div class="topic-metadata">

**Author:** [@trisolaran](https://forum.elixirforum.com/u/trisolaran)\
**Replies:** 2\
**Last updated:** [August 21, 2022, 8:12am UTC](https://forum.elixirforum.com/t/starting-an-application-callback-module-only-if-the-application-is-the-top-level-one/49682 "2022-08-21T08:12:14Z")

</div>

Hello everyone! :waving\_hand: I have an application that defines a module callback in its mix.exs’s application/0 function: mix.exs: def application do \[ mod: {MyApp.Application, \[\]}, extra\_applica…

---

## [I'm finding Phoenix discourages Starter Apps - any reasons why it is designed like this?](https://forum.elixirforum.com/t/im-finding-phoenix-discourages-starter-apps-any-reasons-why-it-is-designed-like-this/49085)

<div class="topic-metadata">

**Author:** [@cvkmohan](https://forum.elixirforum.com/u/cvkmohan)\
**Replies:** 16\
**Last updated:** [July 25, 2022, 2:23pm UTC](https://forum.elixirforum.com/t/im-finding-phoenix-discourages-starter-apps-any-reasons-why-it-is-designed-like-this/49085 "2022-07-25T14:23:06Z")

</div>

One useful feature with a rails new my\_app is, my\_app is used only in one place. If you change there, there will not be any other references anywhere else. This is quite useful in one way. You can create a skeleton app w…

---

## [Question about Application env](https://forum.elixirforum.com/t/question-about-application-env/48851)

<div class="topic-metadata">

**Author:** [@RandomBritishGuy](https://forum.elixirforum.com/u/RandomBritishGuy)\
**Replies:** 2\
**Last updated:** [July 9, 2022, 10:36pm UTC](https://forum.elixirforum.com/t/question-about-application-env/48851 "2022-07-09T22:36:02Z")

</div>

Hi guys! I would love to ask about Application environments. How can I use them via config/dev.ex file? Or via config/config.ex file? I had created one in that way: import Config config :my\_app, :key, :value And then,…

---

## [We have just launched our app, it stands on Elixir - what do you think?](https://forum.elixirforum.com/t/we-have-just-launched-our-app-it-stands-on-elixir-what-do-you-think/48442)

<div class="topic-metadata">

**Author:** [@AdamSabla](https://forum.elixirforum.com/u/AdamSabla)\
**Replies:** 13\
**Last updated:** [June 22, 2022, 7:15am UTC](https://forum.elixirforum.com/t/we-have-just-launched-our-app-it-stands-on-elixir-what-do-you-think/48442 "2022-06-22T07:15:09Z")

</div>

Hello everyone! We have just launched our app (for desktop), and I got the idea to post it here because it stands on Elixir :rocket::flexed\_biceps: What do you think? Any feedback would be very much welcomed! :heart: W…

---

## [Supervisor without any children](https://forum.elixirforum.com/t/supervisor-without-any-children/48161)

<div class="topic-metadata">

**Author:** [@kasperkronborg](https://forum.elixirforum.com/u/kasperkronborg)\
**Replies:** 12\
**Last updated:** [June 3, 2022, 10:17pm UTC](https://forum.elixirforum.com/t/supervisor-without-any-children/48161 "2022-06-03T22:17:25Z")

</div>

I was looking over the source code for plug\_cowboy and saw that in the Plug.Cowboy.start/2 they return a supervisor without any children Supervisor.start\_link(\[\], strategy: :one\_for\_one). What’s the reasoning for doing t…

---

## [Best practices for adding a CLI to your app?](https://forum.elixirforum.com/t/best-practices-for-adding-a-cli-to-your-app/44629)

<div class="topic-metadata">

**Author:** [@danirukun](https://forum.elixirforum.com/u/danirukun)\
**Replies:** 1\
**Last updated:** [December 17, 2021, 11:06am UTC](https://forum.elixirforum.com/t/best-practices-for-adding-a-cli-to-your-app/44629 "2021-12-17T11:06:07Z")

</div>

At work, we have a fairly large Elixir umbrella monolith, and since some other services are Ruby-based, we have a Ruby script in the same project which parses some dot files and has a CLI library called Thor. While this…

---

## [Are there any desktop (Electron-like) apps written in Elixir?](https://forum.elixirforum.com/t/are-there-any-desktop-electron-like-apps-written-in-elixir/44366)

<div class="topic-metadata">

**Author:** [@kalkatfyodor](https://forum.elixirforum.com/u/kalkatfyodor)\
**Replies:** 5\
**Last updated:** [December 13, 2021, 8:07am UTC](https://forum.elixirforum.com/t/are-there-any-desktop-electron-like-apps-written-in-elixir/44366 "2021-12-13T08:07:19Z")

</div>

Is there something like that one can install on his desktop computer as a stand alone app? Is it hard to create something like a basic text editor in Elixir you can install on your computer? How would that even work, wi…

---

## [Application not getting loaded](https://forum.elixirforum.com/t/application-not-getting-loaded/34629)

<div class="topic-metadata">

**Author:** [@Mpanarin](https://forum.elixirforum.com/u/Mpanarin)\
**Replies:** 9\
**Last updated:** [October 21, 2021, 8:25pm UTC](https://forum.elixirforum.com/t/application-not-getting-loaded/34629 "2021-10-21T20:25:10Z")

</div>

Hello everyone. I am experiencing an issue, which I am pretty sure is caused just by me not understanding stuff. Which is usual :slight\_smile: I am currently writing a small package. Its only purpose is providing a few…

---

## [Erlang: code change (gen\_fsm) without stopping the system](https://forum.elixirforum.com/t/erlang-code-change-gen-fsm-without-stopping-the-system/41333)

<div class="topic-metadata">

**Author:** [@reinaldovidal](https://forum.elixirforum.com/u/reinaldovidal)\
**Replies:** 0\
**Last updated:** [July 29, 2021, 4:02pm UTC](https://forum.elixirforum.com/t/erlang-code-change-gen-fsm-without-stopping-the-system/41333 "2021-07-29T16:02:18Z")

</div>

Could someone help me in this doubt? From what I read in the erlang appup cookbook documentation I can’t replace the module (gen\_XXX) and HOT SWAP the code. I’m sketching a system, so I decided to make small test piece…

---

## [Phoenix New App Naming](https://forum.elixirforum.com/t/phoenix-new-app-naming/41151)

<div class="topic-metadata">

**Author:** [@cvkmohan](https://forum.elixirforum.com/u/cvkmohan)\
**Replies:** 3\
**Last updated:** [July 20, 2021, 8:41pm UTC](https://forum.elixirforum.com/t/phoenix-new-app-naming/41151 "2021-07-20T20:41:53Z")

</div>

When we create a new application - what is the meaning behind naming the naming convention? Specifically, I could not understand the rationale behind naming the namespace to be MyApp and MyAppWeb. Can we not call them Do…

---

## [Closure for module configuration?](https://forum.elixirforum.com/t/closure-for-module-configuration/40965)

<div class="topic-metadata">

**Author:** [@rogerweb](https://forum.elixirforum.com/u/rogerweb)\
**Replies:** 6\
**Last updated:** [July 11, 2021, 1:28pm UTC](https://forum.elixirforum.com/t/closure-for-module-configuration/40965 "2021-07-11T13:28:37Z")

</div>

Hi, When a user connects to my application via a Phoenix.Socket he/she provides a token (generated by another system) that I would like to verify and validate. I created a Token module to encapsulate all the verificatio…

---

## [Is Application.fetch\_env expensive?](https://forum.elixirforum.com/t/is-application-fetch-env-expensive/40740)

<div class="topic-metadata">

**Author:** [@rogerweb](https://forum.elixirforum.com/u/rogerweb)\
**Replies:** 1\
**Last updated:** [June 30, 2021, 4:30pm UTC](https://forum.elixirforum.com/t/is-application-fetch-env-expensive/40740 "2021-06-30T16:30:33Z")

</div>

Hi, In terms of performance, is it ok to call Application.fetch\_env! in a function that is called every time my Phoenix application receives a new websocket connection? Should I wrap my function in a GenServer just to …

---

## [Monitor remote applications like nodes with net\_kernel:monitor\_nodes/1](https://forum.elixirforum.com/t/monitor-remote-applications-like-nodes-with-net-kernel-monitor-nodes-1/40505)

<div class="topic-metadata">

**Author:** [@tangui](https://forum.elixirforum.com/u/tangui)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 10:49am UTC](https://forum.elixirforum.com/t/monitor-remote-applications-like-nodes-with-net-kernel-monitor-nodes-1/40505 "2021-06-17T10:49:01Z")

</div>

Hi! I’m working on a library where instances of an application on multiple nodes (dynamically added and removed) collaborate together. At first I was using net\_kernel:monitor\_nodes/1 to do so, assuming that the applica…

---

## [Discover node running application in Cluster](https://forum.elixirforum.com/t/discover-node-running-application-in-cluster/39848)

<div class="topic-metadata">

**Author:** [@larshei](https://forum.elixirforum.com/u/larshei)\
**Replies:** 1\
**Last updated:** [May 20, 2021, 1:37pm UTC](https://forum.elixirforum.com/t/discover-node-running-application-in-cluster/39848 "2021-05-20T13:37:50Z")

</div>

In a small Elixir/Erlang cluster with nodes that run different applications, what would be a good way to “discover which of the nodes runs application X”? I am very sure this is possible, but nothing I read digging thro…

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