mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-26 09:22:00 +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
|
||||
run: mix format --check-formatted
|
||||
- name: Run tests
|
||||
run: mix test
|
||||
run: elixir --cookie "COOKIEFORTESTS" -S mix test
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
|
|
|
@ -54,7 +54,10 @@ defmodule Livebook.Runtime.StandaloneInit do
|
|||
# Enable ANSI escape codes as we handle them with HTML.
|
||||
"+sbwt none +sbwtdcpu none +sbwtdio none -elixir ansi_enabled true",
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue