Browse Source

部署

layui
mail_yanpeng@163.com 6 years ago
parent
commit
4833c49db0
  1. 2
      conf/app.conf
  2. BIN
      data/beeblog.db
  3. 3
      models/DataInit.go

2
conf/app.conf

@ -1,6 +1,6 @@
appname = beeblog appname = beeblog
httpport = 8082 httpport = 8082
runmode = dev runmode = prod
sessionon = true sessionon = true
sessiongcmaxlifetime = 36000 sessiongcmaxlifetime = 36000

BIN
data/beeblog.db

Binary file not shown.

3
models/DataInit.go

@ -24,6 +24,5 @@ func RegistDB() {
//orm.RegisterDataBase("default",_SQLITE3_DRIVER,_DB_NAME,10) //orm.RegisterDataBase("default",_SQLITE3_DRIVER,_DB_NAME,10)
orm.RegisterModel(new(Attachment),new(User),new(Blog),new(NLabel),new(Note),new(NoteColl),new(Category),new(Like),new(Comment)) orm.RegisterModel(new(Attachment),new(User),new(Blog),new(NLabel),new(Note),new(NoteColl),new(Category),new(Like),new(Comment))
//orm.RegisterDataBase("default", "mysql", "root:booszy@tcp(127.0.0.1:3306)/beeblog?charset=utf8&loc=Local", 30) orm.RegisterDataBase("default", "mysql", "root:booszy@tcp(127.0.0.1:3306)/beeblog?charset=utf8&loc=Local", 30)
orm.RegisterDataBase("default", "mysql", "root:booszy@tcp(47.98.109.5:3306)/beeblog?charset=utf8&loc=Local", 30)
} }
Loading…
Cancel
Save