mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-27 05:16:01 +08:00
79e5c432b3
* Isolate evaluation in separate node for each session * Start new remote upon first evaluation and handle nodedown * Add UI for managing evaluation node, improve naming and structure * Show runtime initialization errors and some fixes * Improve standalone node initialization * Correctly handle multiple sessions connecting to the same node * Fix session tests concerning evaluation * Documentation and some refactoring * Various improvements * Configure schedulers to get to sleep immediately after evaluation * Move EvaluatorSpervisor into the Remote namespace * Fix evaluators cleanup * Add tests * Improve flash messages * Introduce remote genserver taking care of cleanup * Redefine the Runtime protocol to serve as an interface for evaluation * Cleanup operations * Use reference for communication with a standalone node * Use shortnames for distribution by default * Update node configuration and make sure epmd is running * Rename Remote to ErlDist
31 lines
680 B
Elixir
31 lines
680 B
Elixir
defmodule LiveBookWeb.Router do
|
|
use LiveBookWeb, :router
|
|
|
|
pipeline :browser do
|
|
plug :accepts, ["html"]
|
|
plug :fetch_session
|
|
plug :fetch_live_flash
|
|
plug :put_root_layout, {LiveBookWeb.LayoutView, :root}
|
|
plug :protect_from_forgery
|
|
plug :put_secure_browser_headers
|
|
end
|
|
|
|
pipeline :api do
|
|
plug :accepts, ["json"]
|
|
end
|
|
|
|
scope "/", LiveBookWeb do
|
|
pipe_through :browser
|
|
|
|
live "/", HomeLive
|
|
live "/sessions", SessionsLive
|
|
live "/sessions/:id", SessionLive, :show
|
|
live "/sessions/:id/runtime", SessionLive, :runtime
|
|
end
|
|
|
|
# Other scopes may use custom stacks.
|
|
# scope "/api", LiveBookWeb do
|
|
# pipe_through :api
|
|
# end
|
|
end
|