forked from x/icebergs
add publish
This commit is contained in:
parent
7460bf90d1
commit
b978f0a8eb
@ -455,9 +455,8 @@ var Index = &ice.Context{Name: "web", Help: "网络模块",
|
|||||||
"index", "usr/volcanos/page/index.html",
|
"index", "usr/volcanos/page/index.html",
|
||||||
"share", "usr/volcanos/page/share.html",
|
"share", "usr/volcanos/page/share.html",
|
||||||
),
|
),
|
||||||
"static", kit.Dict("/", "usr/volcanos/",
|
"static", kit.Dict("/", "usr/volcanos/"),
|
||||||
"/publish/", "usr/publish/",
|
"publish", "usr/publish/",
|
||||||
),
|
|
||||||
"volcanos", kit.Dict("path", "usr/volcanos", "branch", "master",
|
"volcanos", kit.Dict("path", "usr/volcanos", "branch", "master",
|
||||||
"repos", "https://github.com/shylinux/volcanos",
|
"repos", "https://github.com/shylinux/volcanos",
|
||||||
"require", ".ish/pluged",
|
"require", ".ish/pluged",
|
||||||
@ -2428,6 +2427,14 @@ var Index = &ice.Context{Name: "web", Help: "网络模块",
|
|||||||
m.Render(ice.RENDER_DOWNLOAD, p)
|
m.Render(ice.RENDER_DOWNLOAD, p)
|
||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
|
"/publish/": {Name: "/publish/", Help: "空间站", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
|
if m.Option("pod") != "" {
|
||||||
|
m.Cmdy(ice.WEB_SPACE, m.Option("pod"), "web./publish", arg)
|
||||||
|
m.Render(ice.RENDER_RESULT)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
m.Render(ice.RENDER_DOWNLOAD, path.Join(kit.Simple(m.Conf(ice.WEB_SERVE, "meta.publish"), arg)...))
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user