[英]deploying angular 4 app through iis
I am using ng build --prod --base-href=/my folder/subfolder/
And also I have copied the dist
folder inside the above mentioned subfolder. 我正在使用
ng build --prod --base-href=/my folder/subfolder/
并且我已经在上述子文件夹中复制了dist
文件夹。
In IIS I have provided the physical path, but when browsing blank screen is coming without any error. 在IIS中,我提供了物理路径,但是浏览空白屏幕时没有任何错误。
I can suggest what i did for node.js and maybe it can help you also: So, i didn't touch the base href in the project or in the ng build
and in the node.js app for GET / requests I respond with the index.html from the dist folder. 我可以建议我对node.js所做的工作,也许它也可以为您提供帮助:因此,我没有碰到
base href in the project or in the ng build
以及node.js应用程序中用于响应的GET /请求的base href in the project or in the ng build
dist文件夹中的index.html。 res.sendFile(${frontEndDist}/index.html)
; res.sendFile(${frontEndDist}/index.html)
;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.