mirror of
https://github.com/beego/bee.git
synced 2024-12-23 11:40:48 +00:00
59fa4ace1e
This reverts commit a9d3de0872
.
21 lines
415 B
Go
21 lines
415 B
Go
package beegopro
|
|
|
|
import (
|
|
"github.com/beego/bee/internal/pkg/utils"
|
|
beeLogger "github.com/beego/bee/logger"
|
|
"io/ioutil"
|
|
)
|
|
|
|
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
|
|
}
|
|
}
|