mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
add some
This commit is contained in:
parent
21df7f027d
commit
0d6db1c35e
@ -316,6 +316,7 @@ func init() {
|
||||
m.Push(nfs.VERSION, ice.Info.Make.Versions())
|
||||
m.Push(nfs.PATHNAME, ice.Info.Pathname)
|
||||
m.Push(ORIGIN, m.Option(ice.MSG_USERHOST))
|
||||
m.Push(tcp.HOSTPORT, HostPort(m, m.Cmd(tcp.HOST).Append(aaa.IP), m.Cmd(SERVER).Append(tcp.PORT)))
|
||||
}},
|
||||
mdb.SEARCH: {Hand: func(m *ice.Message, arg ...string) {
|
||||
if mdb.IsSearchPreview(m, arg) {
|
||||
|
@ -54,9 +54,7 @@ func _publish_contexts(m *ice.Message, arg ...string) {
|
||||
env := []string{}
|
||||
switch k {
|
||||
case nfs.SOURCE, ice.DEV:
|
||||
if ice.Info.NodeType == web.SERVER {
|
||||
m.OptionDefault(nfs.SOURCE, ice.Info.Make.Remote)
|
||||
} else if m.Option(ice.MSG_USERPOD) == "" {
|
||||
if m.Option(ice.MSG_USERPOD) == "" {
|
||||
m.OptionDefault(nfs.SOURCE, web.AdminCmd(m, cli.RUNTIME, "make.remote").Result())
|
||||
} else {
|
||||
m.OptionDefault(nfs.SOURCE, web.AdminCmd(m, web.SPACE, kit.KeyBase(m.Option(ice.MSG_USERPOD)), cli.RUNTIME, "make.remote").Result())
|
||||
@ -64,7 +62,7 @@ func _publish_contexts(m *ice.Message, arg ...string) {
|
||||
env = append(env, cli.CTX_REPOS, m.Option(nfs.SOURCE))
|
||||
fallthrough
|
||||
case nfs.BINARY, ice.APP:
|
||||
if host := msg.Append(web.ORIGIN); m.Option(web.DOMAIN) != host {
|
||||
if host := msg.Append(tcp.HOSTPORT); m.Option(web.DOMAIN) != host {
|
||||
env = append(env, cli.CTX_DEV_IP, strings.Split(host, "?")[0])
|
||||
}
|
||||
if m.Option(ice.MSG_USERPOD) != "" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user