1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 23:30:55 +00:00
bee/internal/app/module/beegopro/config.go

21 lines
463 B
Go
Raw Normal View History

2020-07-04 14:58:03 +00:00
package beegopro
import (
"github.com/beego/bee/internal/pkg/utils"
beeLogger "github.com/beego/bee/logger"
"io/ioutil"
)
var CompareExcept = []string{"@BeeGenerateTime"}
2020-07-04 14:58:03 +00:00
func (c *Container) GenConfig() {
if utils.IsExist(c.BeegoProFile) {
beeLogger.Log.Fatalf("beego pro toml exist")
return
}
err := ioutil.WriteFile("beegopro.toml", []byte(BeegoToml), 0644)
if err != nil {
beeLogger.Log.Fatalf("write beego pro toml err: %s", err)
return
}
}