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:
parent
19a7fc4612
commit
354ef35f16
@ -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 = `
|
||||
|
Loading…
Reference in New Issue
Block a user