From 15e1ada00d812f0fb80cbd6c8c60723340da3ac3 Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 24 Feb 2024 13:39:29 +0800 Subject: [PATCH] add some --- base/web/dream.go | 2 +- base/web/space.go | 2 +- info.go | 1 + misc/git/status.go | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base/web/dream.go b/base/web/dream.go index 0bcdf0f3..dd8b8628 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -438,7 +438,7 @@ func init() { if ice.Info.NodeType == WORKER || !aaa.IsTechOrRoot(m) || m.IsCliUA() { m.Action() } else if cli.SystemFindGo(m) { - m.Action(html.FILTER, mdb.CREATE, STARTALL, STOPALL, cli.BUILD, PUBLISH) + m.Action(html.FILTER, mdb.CREATE, STARTALL, STOPALL, cli.BUILD, PUBLISH, nfs.FILE) } else { m.Action(html.FILTER, mdb.CREATE, STARTALL, STOPALL) } diff --git a/base/web/space.go b/base/web/space.go index 21144f1f..e239cccf 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -396,7 +396,7 @@ func init() { if ls := kit.Simple(m.Optionv(ice.MSG_UPLOAD)); len(ls) > 1 { m.Cmd(SPACE, pod, SPIDE, ice.DEV, CACHE, SHARE_CACHE+ls[0]) } - m.Options(ice.POD, []string{}, ice.MSG_USERPOD, pod, ice.MSG_DEBUG, ice.FALSE).Cmdy(append(kit.List(ice.SPACE, pod), arg...)...) + m.Options(ice.POD, []string{}, ice.MSG_USERPOD, pod).Cmdy(append(kit.List(ice.SPACE, pod), arg...)...) return true } return false diff --git a/info.go b/info.go index 1b12eec4..db2a47a6 100644 --- a/info.go +++ b/info.go @@ -62,6 +62,7 @@ var Info = struct { System string Domain string PidPath string + CtxRoot string Traceid string Localhost bool Important bool diff --git a/misc/git/status.go b/misc/git/status.go index 6e10e9c8..a4c3073d 100644 --- a/misc/git/status.go +++ b/misc/git/status.go @@ -54,6 +54,7 @@ func init() { m.Cmd(cli.SYSTEM, GIT, STASH) m.Cmd(cli.SYSTEM, GIT, CHECKOUT, ".") m.Go(func() { m.Sleep30ms(ice.QUIT, 1) }) + m.ProcessHold() }}, web.DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) { if !nfs.Exists(m, path.Join(ice.USR_LOCAL_WORK, m.Option(mdb.NAME), _GIT)) {