mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 06:48:07 +08:00
* Add LIVEBOOK_SHUTDOWN_ENABLED Previously we relied on code:get_mode(), but since releases are starting in interactive mode to use less memory, we need a clearer mechanism. * Move shutdown feature check to Livebook.Config Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
7 lines
244 B
Elixir
7 lines
244 B
Elixir
export RELEASE_MODE=interactive
|
|
export LIVEBOOK_SHUTDOWN_ENABLED=true
|
|
|
|
cookie_path="${RELEASE_ROOT}/releases/COOKIE"
|
|
if [ ! -f $cookie_path ]; then
|
|
cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > $cookie_path
|
|
fi
|