mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-12-20 23:25:59 +08:00
Use known cookie when starting runtimes (#199)
This commit is contained in:
parent
d6e9c36571
commit
101f582196
2 changed files with 5 additions and 2 deletions
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: mix format --check-formatted
|
run: mix format --check-formatted
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: mix test
|
run: elixir --cookie "COOKIEFORTESTS" -S mix test
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,10 @@ defmodule Livebook.Runtime.StandaloneInit do
|
||||||
# Enable ANSI escape codes as we handle them with HTML.
|
# Enable ANSI escape codes as we handle them with HTML.
|
||||||
"+sbwt none +sbwtdcpu none +sbwtdio none -elixir ansi_enabled true",
|
"+sbwt none +sbwtdcpu none +sbwtdio none -elixir ansi_enabled true",
|
||||||
# Make the node hidden, so it doesn't automatically join the cluster
|
# Make the node hidden, so it doesn't automatically join the cluster
|
||||||
"--hidden"
|
"--hidden",
|
||||||
|
# Use the cookie in Livebook
|
||||||
|
"--cookie",
|
||||||
|
Atom.to_string(Node.get_cookie())
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue