Starts Phoenix with a named node and Livebook attached to it on port 8081. Single command, Ctrl-C stops both.
15 lines
393 B
Elixir
15 lines
393 B
Elixir
defmodule Mix.Tasks.Notebook do
|
|
@shortdoc "Print instructions for starting the analysis notebook"
|
|
@moduledoc false
|
|
use Mix.Task
|
|
|
|
@impl Mix.Task
|
|
def run(_args) do
|
|
IO.puts("""
|
|
Run bin/notebook to start Phoenix + Livebook together.
|
|
|
|
Livebook will be at http://localhost:8081 with full access to
|
|
Repo, Scorer, BandConfig, Weather, and all app modules.
|
|
""")
|
|
end
|
|
end
|