mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-03 12:48:07 +08:00
Move user release config to user directory (#2302)
This commit is contained in:
parent
7d861caedd
commit
52ac23b4f0
5 changed files with 6 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
0
rel/server/overlays/user/extensions/.gitkeep
Normal file
0
rel/server/overlays/user/extensions/.gitkeep
Normal file
Loading…
Reference in a new issue