Move user release config to user directory (#2302)

This commit is contained in:
Jonatan Kłosko 2023-10-25 11:57:00 +02:00 committed by GitHub
parent 7d861caedd
commit 52ac23b4f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -62,4 +62,4 @@ When clustering is enabled, you must additionally set the following env vars:
`LIVEBOOK_DISTRIBUTION` is automatically set to `name` if clustering is enabled.
Some variables, like `LIVEBOOK_NODE`, are oftentimes computed at runtime. When using the Livebook Docker image, you can create a file at `/app/env.sh` that exports the necessary environment variables. This file is invoked right before booting Livebook.
Some variables, like `LIVEBOOK_NODE`, are oftentimes computed at runtime. When using the Livebook Docker image, you can create a file at `/app/user/env.sh` that exports the necessary environment variables. This file is invoked right before booting Livebook.

View file

@ -134,7 +134,7 @@ defmodule Livebook.Hubs.Dockerfile do
export ERL_AFLAGS="-proto_dist inet6_tcp"\n\
export LIVEBOOK_NODE="${FLY_APP_NAME}-${FLY_IMAGE_REF##*-}@${FLY_PRIVATE_IP}"\n\
export LIVEBOOK_CLUSTER="dns:${FLY_APP_NAME}.internal"\n\
' > /app/env.sh
' > /app/user/env.sh
"""
end

View file

@ -1,5 +1,5 @@
if exist "!RELEASE_ROOT!\env.bat" (
call "!RELEASE_ROOT!\env.bat"
if exist "!RELEASE_ROOT!\user\env.bat" (
call "!RELEASE_ROOT!\user\env.bat"
)
set RELEASE_MODE=interactive

View file

@ -1,5 +1,5 @@
if [ -f "${RELEASE_ROOT}/env.sh" ]; then
. "${RELEASE_ROOT}/env.sh"
if [ -f "${RELEASE_ROOT}/user/env.sh" ]; then
. "${RELEASE_ROOT}/user/env.sh"
fi
export RELEASE_MODE=interactive