Fix deploy via CLI when notebooks path is relative

This commit is contained in:
Hugo Baraúna 2025-08-07 14:08:52 -03:00
parent 60ad9e1cdd
commit e71560e7c4

View file

@ -135,7 +135,9 @@ defmodule LivebookCLI.Deploy do
deploy_results = deploy_results =
for path <- config.paths do for path <- config.paths do
log_info(" * Preparing to deploy notebook #{Path.basename(path)}") log_info(" * Preparing to deploy notebook #{Path.basename(path)}")
files_dir = Livebook.FileSystem.File.local(path)
absolute_path = Path.expand(path)
files_dir = Livebook.FileSystem.File.local(absolute_path)
with {:ok, content} <- File.read(path), with {:ok, content} <- File.read(path),
{:ok, app_deployment} <- prepare_app_deployment(path, content, files_dir) do {:ok, app_deployment} <- prepare_app_deployment(path, content, files_dir) do