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

生产模式,80端口不熟3000端口。需要哪里修改? #8

Open
situmill opened this issue Nov 26, 2018 · 1 comment
Open

生产模式,80端口不熟3000端口。需要哪里修改? #8

situmill opened this issue Nov 26, 2018 · 1 comment

Comments

@situmill
Copy link

打包后生产模式下 nginx 默认80端口。但服务端数据API是3000端口的,404请求不到数据。
http://XXX:3000/dist/index.html 是可以请求到数据。
http://XXX/dist/index.html API请求都是404。

@aermin
Copy link
Owner

aermin commented Nov 27, 2018

打包后生产模式下 nginx 默认80端口。但服务端数据API是3000端口的,404请求不到数据。
http://XXX:3000/dist/index.html 是可以请求到数据。
http://XXX/dist/index.html API请求都是404。

image
是不是这个没注释掉呢 ? 部署这项目到生产环境可以参考我的这篇文章

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