mirror of
https://github.com/beego/bee.git
synced 2024-11-14 22:10:55 +00:00
a23c76305a
Backup only when content changes Fix the version
21 lines
463 B
Go
21 lines
463 B
Go
package beegopro
|
|
|
|
import (
|
|
"github.com/beego/bee/internal/pkg/utils"
|
|
beeLogger "github.com/beego/bee/logger"
|
|
"io/ioutil"
|
|
)
|
|
var CompareExcept = []string{"@BeeGenerateTime"}
|
|
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
|
|
}
|
|
}
|