Disable automatic update when running flyctl proxy (#2723)

This commit is contained in:
Jonatan Kłosko 2024-07-25 08:28:11 +02:00 committed by GitHub
parent 303f78a418
commit a4cc39ec22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,10 +267,12 @@ defmodule Livebook.Runtime.Fly do
"--watch-stdin"
]
env = [{~c"FLY_NO_UPDATE_CHECK", ~c"1"}]
port =
Port.open(
{:spawn_executable, flyctl_path},
[:binary, :hide, :stderr_to_stdout, args: args]
[:binary, :hide, :stderr_to_stdout, args: args, env: env]
)
port_ref = Port.monitor(port)