Fix files/ path to deploy apps with attachments

This commit is contained in:
Alexandre de Souza 2025-10-23 15:29:37 -03:00
parent bcc86ce5b5
commit 0691df1c9a
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

@ -145,8 +145,11 @@ defmodule LivebookCLI.Deploy do
for path <- config.paths do
log_info(" * Preparing to deploy notebook #{Path.basename(path)}")
absolute_path = Path.expand(path)
files_dir = Livebook.FileSystem.File.local(absolute_path)
files_dir =
path
|> Path.expand()
|> Livebook.FileSystem.File.local()
|> Livebook.FileSystem.File.resolve("files/")
with {:ok, content} <- File.read(path),
{:ok, app_deployment} <- prepare_app_deployment(path, content, files_dir) do