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

同样的代码,在mac本地运行没问题,但放到linux(centos)上以后,无法生成路由(找不到路径404) #811

Open
zenghnn opened this issue Nov 23, 2021 · 1 comment

Comments

@zenghnn
Copy link

zenghnn commented Nov 23, 2021

具体环境:
mac11.6 go 1.6.10 beego v1.12.3 bee-cli v1.12.0

centos7.6 go 1.6.10 bee-cli v2.0.2

一开始时服务器上的bee是1.12.0 我以为是版本问题,升级到2.0.2 问题依然存在
在服务器上用bee run 或者用go build 都无法正常生成 router文件(bee run 之后控制台提示无法找到路径 如:/user/login 404)
运行 命令 bee generate routers -ctrlDir=/Users/mindeng/go-workspace/src/hello-api/controllers -routersFile=mygen.go -routersPkg="main"
依然无效

@xuchengli
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

2 participants