# Dash app precompilation

**URL:** <https://discourse.julialang.org/t/dash-app-precompilation/99529>\
**Category:** Visualization\
**Tags:** dash\
**Created:** [May 28, 2023, 8:02pm UTC](https://discourse.julialang.org/t/dash-app-precompilation/99529 "2023-05-28T20:02:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [May 28, 2023, 8:02pm UTC](https://discourse.julialang.org/t/dash-app-precompilation/99529/1 "2023-05-28T20:02:39Z")

</div>

Dear all,

I have created a Dash application as a Julia module (say `myApp.jl`). This module has its own environment that I update from time to time. However, when I update the environment, the precompilation step of `myApp.jl` gets stuck and I have to stop the process. I suspect this is because the module contains the `run_server` function that makes the application run.

Is there any way to avoid running the `run_server` function during precompilation?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [June 13, 2023, 6:57am UTC](https://discourse.julialang.org/t/dash-app-precompilation/99529/2 "2023-06-13T06:57:24Z")

</div>

Hi all,

Has anyone an idea how to avoid to precompile a Dash app without running it ?

Thanks for sharing your thoughts 🙂

---

<div class="post-metadata">

**Author:** ![Maucejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maucejo/32/39090_2.png) [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Post date:** [July 30, 2023, 3:26pm UTC](https://discourse.julialang.org/t/dash-app-precompilation/99529/3 "2023-07-30T15:26:27Z")

</div>

I answer my question just for the records.

The solution seems to encapsulate the command in a function. In doing so, the precompilation works.
