livebook/config/runtime.exs
Jonatan Kłosko f31428739f
Fix node resolution in CI (#173)
* Limit the number of Elixir nodes spawned at the same time in tests

* Increase timeout

* Update CI to Elixir 1.12

* Terminate unused runtimes

* Increase timeout on the spawning node side

* Cleanup

* Run test with --trace

* Up

* Up

* Run tests with long node names

* Just longnames CI

* Move CI dependent config to config/test.exs
2021-04-14 14:28:00 +02:00

15 lines
529 B
Elixir

import Config
# Configure the type of names used for distribution and the node name.
# By default a random short name is used.
# config :livebook, :node, {:shortnames, "livebook"}
# config :livebook, :node, {:longnames, :"livebook@127.0.0.1"}
if config_env() == :prod do
# We don't need persistent session, so it's fine to just
# generate a new key everytime the app starts
secret_key_base = :crypto.strong_rand_bytes(48) |> Base.encode64()
config :livebook, LivebookWeb.Endpoint, secret_key_base: secret_key_base
end