首页 / GO / 使用beego/bee热启动gin框架
使用beego/bee热启动gin框架
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了使用beego/bee热启动gin框架,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2234字,纯文字阅读大概需要4分钟。
内容图文
![使用beego/bee热启动gin框架](/upload/InfoBanner/zyjiaocheng/1334/392410e25b3b46c8a5b6d192e27f5d42.jpg)
1.需要关闭gomod
export GO111MODULE=off
2.安装 bee
go get -u github.com/beego/bee
3.再开启gomod
export GO111MODULE=on
4.启动服务
bee run
haima@haima-PC:~/go/src/haimait/gin_web$ bee run
______
| ___ | |_/ / ___ ___
| ___ \ / _ \ / _ | |_/ /| __/| __/
\____/ \___| \___| v1.10.0
2020/02/18 23:06:45 INFO ? 0001 Using 'gin_web' as 'appname'
2020/02/18 23:06:45 INFO ? 0002 Initializing watcher...
github.com/haimait/gin_web/pkg/e
github.com/go-ini/ini
github.com/haimait/gin_web/lib/cache
github.com/go-sql-driver/mysql
github.com/jinzhu/gorm
github.com/haimait/gin_web/lib/jwt
github.com/haimait/gin_web/api/service
github.com/haimait/gin_web/lib/apilog
github.com/haimait/gin_web/lib/httpext
github.com/pkg/errors
github.com/lestrrat/go-strftime
github.com/haimait/gin_web/conf
github.com/lestrrat/go-file-rotatelogs
github.com/haimait/gin_web/api/middleware
github.com/haimait/gin_web/api/model
github.com/haimait/gin_web/api/controller
github.com/haimait/gin_web/router
github.com/haimait/gin_web
2020/02/18 23:06:50 SUCCESS ? 0003 Built Successfully!
2020/02/18 23:06:50 INFO ? 0004 Restarting 'gin_web'...
2020/02/18 23:06:50 SUCCESS ? 0005 './gin_web' is running...
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
0.0.0.0
8822
[GIN-debug] GET /user/create_user --> github.com/haimait/gin_web/api/controller.CreateUser (8 handlers)
[GIN-debug] GET /token/create --> github.com/haimait/gin_web/api/controller.CreateToken (8 handlers)
[GIN-debug] GET /test/response --> github.com/haimait/gin_web/api/controller.Response (8 handlers)
[GIN-debug] GET /test/testlog --> github.com/haimait/gin_web/api/controller.TestLog (8 handlers)
[GIN-debug] GET /test/getconfig --> github.com/haimait/gin_web/api/controller.GetConfig (8 handlers)
[GIN-debug] POST /test/testvalid1 --> github.com/haimait/gin_web/api/controller.TestValid1 (9 handlers)
[GIN-debug] Listening and serving HTTP on 0.0.0.0:8822
原文:https://www.cnblogs.com/haima/p/12329343.html
内容总结
以上是互联网集市为您收集整理的使用beego/bee热启动gin框架全部内容,希望文章能够帮你解决使用beego/bee热启动gin框架所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。