Use known cookie when starting runtimes (#199)

This commit is contained in:
José Valim 2021-04-15 20:09:54 +02:00 committed by GitHub
parent d6e9c36571
commit 101f582196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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:

View file

@ -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