mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-23 14:27:15 +08:00
15 lines
338 B
Elixir
15 lines
338 B
Elixir
|
defmodule LivebookSpace.Application do
|
||
|
@moduledoc false
|
||
|
|
||
|
use Application
|
||
|
|
||
|
def start(_type, _args) do
|
||
|
children = [
|
||
|
{Plug.Cowboy, scheme: :http, plug: LivebookSpaceWeb.Plug, options: [port: 4000]}
|
||
|
]
|
||
|
|
||
|
opts = [strategy: :one_for_one, name: LivebookSpace.Supervisor]
|
||
|
Supervisor.start_link(children, opts)
|
||
|
end
|
||
|
end
|