mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-09 22:44:38 +08:00
More fixes
This commit is contained in:
parent
c9ce567dad
commit
41ea5564b3
2 changed files with 9 additions and 4 deletions
|
@ -3,7 +3,14 @@ if exist "!RELEASE_ROOT!\user\env.bat" (
|
|||
)
|
||||
|
||||
set RELEASE_MODE=interactive
|
||||
if not defined RELEASE_DISTRIBUTION set RELEASE_DISTRIBUTION=none
|
||||
|
||||
if "%RELEASE_COMMAND%"=="rpc" (
|
||||
set RELEASE_DISTRIBUTION=name
|
||||
) else if "%RELEASE_COMMAND%"=="remote" (
|
||||
set RELEASE_DISTRIBUTION=name
|
||||
) else (
|
||||
set RELEASE_DISTRIBUTION=none
|
||||
)
|
||||
|
||||
if defined LIVEBOOK_NODE set RELEASE_NODE=!LIVEBOOK_NODE!
|
||||
if defined LIVEBOOK_COOKIE set RELEASE_COOKIE=!LIVEBOOK_COOKIE!
|
||||
|
|
|
@ -25,8 +25,6 @@ else
|
|||
if [ -z "${LIVEBOOK_NODE}" ]; then
|
||||
deployment="$(echo $image_id | shasum | cut -c 1-10)"
|
||||
export LIVEBOOK_NODE="livebook-${deployment}@${machine_ip}"
|
||||
else
|
||||
export LIVEBOOK_NODE="${LIVEBOOK_NODE}@${machine_ip}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -35,7 +33,7 @@ else
|
|||
fi
|
||||
|
||||
export RELEASE_MODE="interactive"
|
||||
if [ -z "${RELEASE_DISTRIBUTION}" ]; then export RELEASE_DISTRIBUTION="none"; fi
|
||||
export RELEASE_DISTRIBUTION="none"
|
||||
|
||||
# We remove the COOKIE file when assembling the release, because we
|
||||
# don't want to share the same cookie across users. The Elixir release
|
||||
|
|
Loading…
Add table
Reference in a new issue