Skip to content

Commit

Permalink
Add webIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Oct 5, 2023
1 parent 4f1a504 commit 03e9dbe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package run

import (
"path/filepath"
"strings"

"github.com/casbin/caswaf/util"
Expand Down Expand Up @@ -52,6 +53,18 @@ func CreateRepo(siteName string, needStart bool, diff string) int {
pid := getPid(siteName)
return pid
}
} else {
webIndex := filepath.Join(path, "web/build/index.html")
if !util.FileExist(webIndex) {
if strings.HasPrefix(siteName, "cc_") || strings.Count(siteName, "_") == 2 {
index := getNameIndex(siteName)
if index == 0 {
gitWebBuild(path)
}
} else {
gitWebBuild(path)
}
}
}
}

Expand Down

0 comments on commit 03e9dbe

Please sign in to comment.