From d71dedd842b1e8395725f8a8903a73845ea211d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Wed, 24 Jul 2024 18:05:20 +0700 Subject: [PATCH] Pass FLY_API_TOKEN to the Fly runtime machine --- lib/livebook/runtime/fly.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/livebook/runtime/fly.ex b/lib/livebook/runtime/fly.ex index 9d908320f..6be7c0a5f 100644 --- a/lib/livebook/runtime/fly.ex +++ b/lib/livebook/runtime/fly.ex @@ -171,7 +171,9 @@ defmodule Livebook.Runtime.Fly do Map.new(base_image.env), %{ "LIVEBOOK_RUNTIME" => runtime_data, - "ERL_AFLAGS" => "-proto_dist inet6_tcp" + "ERL_AFLAGS" => "-proto_dist inet6_tcp", + # Make the token automatically available for FLAME + "FLY_API_TOKEN" => config.token } )