Release 2.7.0: executable handbooks and native user-site workflows

This commit is contained in:
cflmy committed 2026-11-10 17:03:06 +08:00
1 parent aa0c4d0f55
commit d9aef957f7
562 files changed
+21064 -20387

No files matched your search

+8 -1
View File
@@ -345,7 +345,14 @@ func web_listen(argsJSON *C.char, outJSON **C.char, errMsg **C.char) C.int {
if len(appBag) == 0 {
appBag = args
}
out, err := httpx.Listen(appBag, entryDir())
root := entryDir()
if artifactRoot, ok := appBag["artifact_root"].(string); ok && artifactRoot != "" {
root = artifactRoot
}
if _, err := httpx.InspectApp(appBag); err != nil {
return replyJSON(outJSON, errMsg, nil, err)
}
out, err := httpx.Listen(appBag, root)
return replyJSON(outJSON, errMsg, out, err)
}