List aws_credentials in a release

This commit is contained in:
José Valim 2023-11-16 17:54:34 +01:00
parent 975c3413ee
commit d345c9eeff
2 changed files with 6 additions and 1 deletions

View file

@ -87,7 +87,7 @@ defmodule Livebook.Application do
defp setup_optional_dependencies() do
if Livebook.Config.aws_credentials?() do
Application.ensure_all_started(:aws_credentials)
{:ok, _} = Application.ensure_all_started(:aws_credentials)
end
end

View file

@ -153,15 +153,20 @@ defmodule Livebook.MixProject do
## Releases
# aws_credentials has runtime: false, so explicitly add is as :load
@release_apps [livebook: :permanent, aws_credentials: :load]
defp releases do
[
livebook: [
applications: @release_apps,
include_executables_for: [:unix, :windows],
include_erts: false,
rel_templates_path: "rel/server",
steps: [:assemble, &remove_cookie/1]
],
app: [
applications: @release_apps,
include_erts: false,
rel_templates_path: "rel/app",
steps: [