-
Notifications
You must be signed in to change notification settings - Fork 225
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
按照说明打包后在Tomcat下运行失败 #5
Comments
@iedwin |
@iedwin 你用什么命令打的包? |
可能你没有理解readme里面说的那个打包的意思,我已经做好了命令,你直接使用non run bulid,就可以了,如果是使用ng build的话,你要加上参数--base-href cc-client,我还在后面特意加了备注的,使用我这种方式部署,不需要去修改tomcat 的任何东西,丢到webapps目录下,就和java程序一样的。 |
今天刚提交的更新,我还特意把angular-cli的输出目录从dist直接改成了cc-client,省去了重命名! |
注:我上面的命令打错了,更正下,不是non run build,而是npm run build,手机老打错字!😂 |
仔细看了看package.json,确实是如此。 |
回头我把readme写详细点,这样更好理解 |
@332557712 |
@iedwin 回头我研究下 |
@332557712 |
@iedwin 我已经解决了打包报错的问题了,把命令修改成了ng build --prod --aot --base-href /cc-client/ |
@332557712 |
依然是报404错误,不知道是哪里设置的不对?
The text was updated successfully, but these errors were encountered: