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

源码部署,修改代码并重新编译后,前端404(已配置nginx) #4480

Closed
blackwhite084 opened this issue May 25, 2024 · 3 comments

Comments

@blackwhite084
Copy link

blackwhite084 commented May 25, 2024

* Describe the bug

nginx模板是直接复制的、只修改了域名,以及绝对路径
访问根目录后跳转到这个页面,但提示404(f12能看到全是200)
image

已切换到15分支

* Environment

  • NocoBase version:15
  • Database type and version: mysql8.x
  • OS:centos7
  • Deployment Methods:Git source code
  • Docker image version:
  • NodeJS version: 18.x

* How To Reproduce

设置生产环境、编译、部署nginx,访问前端根目录

Expected behavior

Screenshots

Logs

@blackwhite084
Copy link
Author

补充、访问根目录时后端api有日志输出、并且无报错,重定向后api无输出

@blackwhite084 blackwhite084 changed the title 源码部署后前端404(已配置nginx) 源码部署,修改代码并重新编译后,前端404(已配置nginx) May 25, 2024
@blackwhite084
Copy link
Author

blackwhite084 commented May 25, 2024

补充:create_app方式创建应用并不通过nginx正常访问,但执行下面代码更新前端部分复现404,然后在my-nocobase-app内重新yarn start后再次恢复正常

[root@xxx nocobase]# rm -rf my-nocobase-app/storage/.app-dev/dist/client
[root@xxx nocobase]# cp -r packages/core/app/dist/client my-nocobase-app/storage/.app-dev/dist/

@chenos
Copy link
Contributor

chenos commented May 27, 2024

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

3 participants