mirror of
https://github.com/beego/bee.git
synced 2024-11-23 22:10:54 +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