mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-01 12:41:43 +08:00
List aws_credentials in a release
This commit is contained in:
parent
975c3413ee
commit
d345c9eeff
2 changed files with 6 additions and 1 deletions
|
@ -87,7 +87,7 @@ defmodule Livebook.Application do
|
||||||
|
|
||||||
defp setup_optional_dependencies() do
|
defp setup_optional_dependencies() do
|
||||||
if Livebook.Config.aws_credentials?() do
|
if Livebook.Config.aws_credentials?() do
|
||||||
Application.ensure_all_started(:aws_credentials)
|
{:ok, _} = Application.ensure_all_started(:aws_credentials)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
5
mix.exs
5
mix.exs
|
@ -153,15 +153,20 @@ defmodule Livebook.MixProject do
|
||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|
||||||
|
# aws_credentials has runtime: false, so explicitly add is as :load
|
||||||
|
@release_apps [livebook: :permanent, aws_credentials: :load]
|
||||||
|
|
||||||
defp releases do
|
defp releases do
|
||||||
[
|
[
|
||||||
livebook: [
|
livebook: [
|
||||||
|
applications: @release_apps,
|
||||||
include_executables_for: [:unix, :windows],
|
include_executables_for: [:unix, :windows],
|
||||||
include_erts: false,
|
include_erts: false,
|
||||||
rel_templates_path: "rel/server",
|
rel_templates_path: "rel/server",
|
||||||
steps: [:assemble, &remove_cookie/1]
|
steps: [:assemble, &remove_cookie/1]
|
||||||
],
|
],
|
||||||
app: [
|
app: [
|
||||||
|
applications: @release_apps,
|
||||||
include_erts: false,
|
include_erts: false,
|
||||||
rel_templates_path: "rel/app",
|
rel_templates_path: "rel/app",
|
||||||
steps: [
|
steps: [
|
||||||
|
|
Loading…
Reference in a new issue