diff --git a/models/models.go b/models/models.go index 13c9339..696552a 100644 --- a/models/models.go +++ b/models/models.go @@ -5,6 +5,7 @@ import ( "github.com/jinzhu/gorm" "github.com/taoshihan1991/imaptool/config" "github.com/taoshihan1991/imaptool/tools" + "log" "time" ) @@ -23,6 +24,7 @@ func init() { var err error DB, err = gorm.Open("mysql", dsn) if err != nil { + log.Println(err) panic("数据库连接失败!") } DB.SingularTable(true) diff --git a/readme.md b/readme.md index e74db5b..b506097 100644 --- a/readme.md +++ b/readme.md @@ -59,9 +59,9 @@ 1) 下载地址 - github: https://github.com/taoshihan1991/go-fly/releases/download/0.2.8/go-fly-0.2.8.zip + github: https://github.com/taoshihan1991/go-fly/releases/download/0.3.1/go-fly-0.3.1.zip - gitee(国内): https://gitee.com/taoshihan/go-fly/attach_files/619517/download/go-fly-0.2.9.zip + gitee(国内): https://gitee.com/taoshihan/go-fly/attach_files/620113/download/go-fly-0.3.1.zip 2) 文件解压缩 @@ -70,7 +70,7 @@ linux服务器: mkdir go-fly cd go-fly - wget https://gitee.com/taoshihan/go-fly/attach_files/616920/download/go-fly-0.2.8.zip + wget https://gitee.com/taoshihan/go-fly/attach_files/620113/download/go-fly-0.3.1.zip unzip gofly-0.2.3.zip chmod 0777 -R ./ @@ -120,7 +120,9 @@ #### 4. 网页使用 - 服务端安装成功后可把域名换成自己的域名或IP + 1.服务端安装成功后可把域名换成自己的域名或IP + + 2.默认访问本地http://127.0.0.1:8081 ```php @@ -133,10 +135,7 @@ }) ``` - -#### 5. 在线访问 - http://127.0.0.1:8081 ### nginx部署