1
0
mirror of https://github.com/beego/bee.git synced 2024-12-25 04:30:50 +00:00

fix windows createapp

This commit is contained in:
astaxie 2013-06-26 10:49:59 +08:00
parent 19a7fc4612
commit 354ef35f16

View File

@ -113,7 +113,7 @@ func createapp(cmd *Command, args []string) {
writetofile(path.Join(apppath, "views", "index.tpl"), indextpl)
fmt.Println("create main.go:", path.Join(apppath, "main.go"))
writetofile(path.Join(apppath, "main.go"), strings.Replace(maingo, "{{.Appname}}", strings.TrimPrefix(appsrcpath, "/"), -1))
writetofile(path.Join(apppath, "main.go"), strings.Replace(maingo, "{{.Appname}}", strings.TrimPrefix(strings.Replace(appsrcpath, "\\", "/", -1), "/"), -1))
}
var appconf = `