diff --git a/base/web/spide.go b/base/web/spide.go index 2ce5f467..ffd90a6f 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -401,3 +401,6 @@ func SpideSave(m *ice.Message, file, link string, cb func(count int, total int, func SpideOrigin(m *ice.Message, name string) string { return m.Cmdv("web.spide", name, CLIENT_ORIGIN) } +func SpideURL(m *ice.Message, name string) string { + return m.Cmdv("web.spide", name, CLIENT_URL) +} diff --git a/core/code/compile.go b/core/code/compile.go index 2bc9577c..6ae71543 100644 --- a/core/code/compile.go +++ b/core/code/compile.go @@ -126,9 +126,8 @@ func init() { m.Logs(nfs.SAVE, nfs.TARGET, file, nfs.SOURCE, main) m.Cmdy(nfs.DIR, file, "time,path,size,hash,link") kit.If(!m.IsCliUA() && strings.Contains(file, ice.ICE), func() { - defer m.EchoScript(m.Cmdv(web.SPIDE, ice.DEMO, web.CLIENT_URL)) - defer m.EchoScript("docker run -p 20000:9020 -w /root -it alpine") m.Cmdy(PUBLISH, ice.CONTEXTS, ice.APP) + m.EchoScript(web.SpideURL(m, ice.DEMO)) }) } }}, diff --git a/misc/git/service.go b/misc/git/service.go index 3f300942..e315b3f2 100644 --- a/misc/git/service.go +++ b/misc/git/service.go @@ -163,6 +163,7 @@ func init() { m.Push(nfs.SIZE, kit.Split(m.Cmdx(cli.SYSTEM, "du", "-sh", path.Join(ice.USR_LOCAL_REPOS, value[REPOS])))[0]) m.PushScript(kit.Format("git clone %s", _service_link(m, value[REPOS]))) }).Sort(REPOS).Cmdy(web.CODE_PUBLISH, ice.CONTEXTS, ice.DEV) + m.EchoScript(web.SpideURL(m, ice.DEMO)) kit.If(mdb.Config(m, aaa.AUTH) == aaa.PRIVATE, func() { m.StatusTimeCount(aaa.AUTH, aaa.PRIVATE) }) } else if repos := _repos_open(m, arg[0]); len(arg) == 1 { defer m.PushScript(kit.Format("git clone %s", _service_link(m, arg[0])))