mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 12:04:20 +08:00
Fix deploy via CLI when notebooks path is relative (#3042)
This commit is contained in:
parent
60ad9e1cdd
commit
120da1942d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue