Skip to content

Commit bdf6e44

Browse files
committed
Fix issue with app failing to boot on Erlang/OTP 28
1 parent 85439f9 commit bdf6e44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mix.exs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ defmodule Livebook.MixProject do
3535
end
3636

3737
def application do
38+
env = Application.get_all_env(:livebook)
39+
3840
[
3941
mod: {Livebook.Application, []},
4042
extra_applications: [
@@ -47,7 +49,9 @@ defmodule Livebook.MixProject do
4749
:crypto,
4850
:public_key
4951
],
50-
env: Application.get_all_env(:livebook)
52+
# Erase live reload as it contains regexes which fails
53+
# when loaded in the next run
54+
env: put_in(env[LivebookWeb.Endpoint][:live_reload], [])
5155
]
5256
end
5357

@@ -196,7 +200,6 @@ defmodule Livebook.MixProject do
196200
defp write_runtime_modules(release) do
197201
# We copy the subset of Livebook modules that are injected into
198202
# the runtime node. See overlays/bin/server for more details
199-
200203
app = release.applications[:livebook]
201204

202205
source = Path.join([release.path, "lib", "livebook-#{app[:vsn]}", "ebin"])

0 commit comments

Comments
 (0)