Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag redefined : graceful #73

Open
awefire opened this issue Mar 2, 2021 · 3 comments
Open

flag redefined : graceful #73

awefire opened this issue Mar 2, 2021 · 3 comments

Comments

@awefire
Copy link

awefire commented Mar 2, 2021

完全按照readme操作,build时报错:
QQ图片20210302170024

唯一的区别是使用bee(v2.0.2)新建项目引用的是github.com/beego/beego而不是github.com/astaxie/beego,手动修改import会报错。应该怎样修改,望给个思路

@northfun
Copy link

northfun commented May 15, 2021

这个问题是因为你用的bee是v2的beego,而admin是astaxie/beego,v2/beego和astaxie/beego的init()方法里都有定义graceful运行参数,启动时参数冲突panic。
最佳解决方案是admin项目升级,只用v2/beego。
临时解决方案是把v2的bee new 生成的routers、controllers、main里import的v2包替换成github.com/astaxie/beego
或者使用astaxia/beego编译的bee工具生成项目。

@dk333
Copy link

dk333 commented Jun 4, 2021

我的方法是将那两行注释掉。

@brady-wang
Copy link

该升级了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants