BUG修复
This commit is contained in:
@@ -35,15 +35,8 @@ func main() {
|
||||
|
||||
// if cp := os.Getenv("CONTEXT_PATH"); cp != "" {
|
||||
contextPath = strings.TrimRight("/console", "/")
|
||||
// }
|
||||
|
||||
http.Handle(contextPath+"/exec/", websocket.Handler(ExecContainer))
|
||||
httpDir := http.FileServer(http.Dir(*localPath))
|
||||
|
||||
//http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
|
||||
http.Handle(contextPath+"/", http.StripPrefix(contextPath+"/", httpDir))
|
||||
// 仅index.html
|
||||
|
||||
if err := http.ListenAndServe(":"+*port, nil); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user