mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-10 08:57:36 +08:00
e5e13d86c2
* Serve iframes from another local port when running on http * Use relative hostname in local iframe URL * Simplify server start check * Use random iframe port when Livebook runs on a random port * Rename space/ to iframe/ * LivebookWeb.IframePlug -> LivebookWeb.IframeEndpoint
26 lines
882 B
Elixir
26 lines
882 B
Elixir
import Config
|
|
|
|
# We don't run a server during test. If one is required,
|
|
# you can enable the server option below.
|
|
config :livebook, LivebookWeb.Endpoint,
|
|
http: [port: 4002],
|
|
server: false
|
|
|
|
config :livebook, :iframe_port, 4003
|
|
|
|
# Print only warnings and errors during test
|
|
config :logger, level: :warn
|
|
|
|
# Disable authentication mode during test
|
|
config :livebook, :authentication_mode, :disabled
|
|
|
|
# Use the embedded runtime in tests by default, so they
|
|
# are cheaper to run. Other runtimes can be tested by starting
|
|
# and setting them explicitly
|
|
config :livebook, :default_runtime, {Livebook.Runtime.Embedded, []}
|
|
|
|
# Use longnames when running tests in CI, so that no host resolution is required,
|
|
# see https://github.com/livebook-dev/livebook/pull/173#issuecomment-819468549
|
|
if System.get_env("CI") == "true" do
|
|
config :livebook, :node, {:longnames, :"livebook@127.0.0.1"}
|
|
end
|