mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 04:46:04 +08:00
Fix files/ path to deploy apps with attachments
This commit is contained in:
parent
bcc86ce5b5
commit
0691df1c9a
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue