高级 Beego
少于1分钟
Advanced Beego 高级 Beego
We have demonstrated the basic usage of Beego. Now we will talk about more advanced topics.
我们已经演示了 Beego 的基本用法。现在我们将讨论更高级的话题。
Beego will serve as two ports by default. One is 8080 for application to serve users. Another is 8088, to monitor the process status, execute tasks and so on.
Beego 默认情况下将提供两个端口。一个是 8080,用于应用程序为用户提供服务。另一个是 8088,用于监控进程状态、执行任务等。
Filters is a very convenient feature for you to extend your logic. You can easily implement user authentication, log visiting, compatibility switching and so on.
过滤器是一个非常方便的功能,可用于扩展您的逻辑。您可以轻松实现用户身份验证、记录访问、兼容性切换等。
Reload is always mentioned in web development that allows deploying application without interrupt user requests.
重新加载始终在 Web 开发中提及,它允许在不中断用户请求的情况下部署应用程序。
This feature is not well done yet. It only tested on Mac and Linux. It haven’t been tested on production environment yet. It’s still under testing, so take your own risk to use it. It’s recommended to use upstream of nginx.
此功能尚未完善。它仅在 Mac 和 Linux 上进行了测试。尚未在生产环境中进行测试。它仍在测试中,因此请自行承担使用风险。建议在 nginx 上游使用。