diff --git a/base/web/spide.go b/base/web/spide.go index 3d60b592..30a21160 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -250,22 +250,23 @@ const ( CLIENT_PROTOCOL = "client.protocol" CLIENT_HOSTNAME = "client.hostname" + CLIENT_TIMEOUT = "client.timeout" - CLIENT_NAME = "client.name" - CLIENT_METHOD = "client.method" - CLIENT_TIMEOUT = "client.timeout" - CLIENT_URL = "client.url" - LOGHEADERS = "logheaders" + CLIENT_NAME = "client.name" + CLIENT_METHOD = "client.method" + CLIENT_ORIGIN = "client.origin" + CLIENT_URL = "client.url" - OPEN = "open" - FULL = "full" - LINK = "link" - HTTP = "http" - FORM = "form" - MERGE = "merge" - ADDRESS = "address" - REQUEST = "request" - RESPONSE = "response" + OPEN = "open" + FULL = "full" + LINK = "link" + HTTP = "http" + FORM = "form" + MERGE = "merge" + ADDRESS = "address" + REQUEST = "request" + RESPONSE = "response" + LOGHEADERS = "logheaders" ) const SPIDE = "spide" diff --git a/core/code/publish.go b/core/code/publish.go index 01a84c5d..df387e96 100644 --- a/core/code/publish.go +++ b/core/code/publish.go @@ -67,9 +67,9 @@ func _publish_contexts(m *ice.Message, arg ...string) { case ice.MISC: _publish_file(m, ice.ICE_BIN) case ice.CORE: - m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append("client.origin")) + m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.COM).Append(web.CLIENT_ORIGIN)) case ice.BASE: - m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append("client.origin")) + m.Option(web.DOMAIN, m.Cmd(web.SPIDE, ice.SHY).Append(web.CLIENT_ORIGIN)) m.Option(nfs.REMOTE, kit.Select(ice.Info.Make.Remote, cli.SystemExec(m, "git", "config", "remote.origin.url"))) } if buf, err := kit.Render(m.Config(kit.Keys(ice.CONTEXTS, k)), m); m.Assert(err) { @@ -128,7 +128,7 @@ export ctx_dev={{.Option "domain"}}{{.Option "ctx_env"}}; temp=$(mktemp); curl - `, ice.CORE, ` # 下载命令 wget Busybox -temp=$(mktemp); wget -O $temp -q http://shylinux.com; source $temp binary +temp=$(mktemp); wget -O $temp -q http://contexts.com.cn; source $temp binary # 下载命令 wget Alpine temp=$(mktemp); wget -O $temp -q {{.Option "domain"}}; source $temp binary