Skip to content

Commit

Permalink
[_]
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Oct 23, 2023
1 parent 598cdf6 commit 0927a12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sui/storages/local/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ import (
func (tmpl *Template) Build(option *core.BuildOption) error {
var err error

root, err := tmpl.local.DSL.PublicRoot()
if err != nil {
log.Error("SyncAssets: Get the public root error: %s. use %s", err.Error(), tmpl.local.DSL.Public.Root)
root = tmpl.local.DSL.Public.Root
}

if option.AssetRoot == "" {
option.AssetRoot = filepath.Join(tmpl.local.DSL.Public.Root, "assets")
option.AssetRoot = filepath.Join(root, "assets")
}

// Sync the assets
Expand Down

0 comments on commit 0927a12

Please sign in to comment.