diff --git a/conf/app.conf b/conf/app.conf index d2ca2c8..a8b5824 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -1,6 +1,6 @@ appname = beeblog httpport = 8082 -runmode = dev +runmode = prod sessionon = true sessiongcmaxlifetime = 36000 diff --git a/data/beeblog.db b/data/beeblog.db deleted file mode 100644 index fed87f6..0000000 Binary files a/data/beeblog.db and /dev/null differ diff --git a/models/DataInit.go b/models/DataInit.go index 075fd47..01e4b7b 100644 --- a/models/DataInit.go +++ b/models/DataInit.go @@ -24,6 +24,5 @@ func RegistDB() { //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.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) + orm.RegisterDataBase("default", "mysql", "root:booszy@tcp(127.0.0.1:3306)/beeblog?charset=utf8&loc=Local", 30) } \ No newline at end of file