Fix deploy via CLI when notebooks path is relative (#3042)

This commit is contained in:
Hugo Baraúna 2025-08-07 14:51:50 -03:00 committed by GitHub
parent 60ad9e1cdd
commit 120da1942d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,9 @@ defmodule LivebookCLI.Deploy do
deploy_results =
for path <- config.paths do
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),
{:ok, app_deployment} <- prepare_app_deployment(path, content, files_dir) do