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