-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow embedded runtime by env #1084
allow embedded runtime by env #1084
Conversation
Thank you! We should also check somewhere internally that, if someone tries to start the embedded runtime and it is disabled, perhaps by hacking around the UI, we fail to start it. @jonatanklosko, where would be the best place to check it? |
We have a separate LV for configuring each runtime, and that's where we connect, so we can just have a check in |
like this? defmodule LivebookWeb.SessionLive.ElixirStandaloneLive do
def mount(param, session, socket) do
unless __MODULE__ in Livebook.Config.runtime_modules() do
raise "now allow runtime elixir standalone."
# code...
end
end
end |
@ByeongUkChoi yup, except we want to check for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ByeongUkChoi thank you! :)
#1082
LIVEBOOK_EMBEDDED_RUNTIME_ENABLED
LIVEBOOK_EMBEDDED_RUNTIME_ENABLED
is not true