简体   繁体   English

如何将 Angular 通用项目部署到 plesk 中的虚拟目录

[英]How to deploy Angular Universal project to virtual directory in plesk

i want deploy angular universal project in my domain virtual directory but issue is that when i deploy project it not load any css js(asssets) and inner pages我想在我的域虚拟目录中部署 angular 通用项目,但问题是当我部署项目时它不会加载任何 css js(资产)和内页

eg domain.com/virtual directory but when open it not load its assets saying not found domain.com/css altough it has to be this domain.com/Virtual Direcory/css例如 domain.com/virtual 目录,但是当打开它时没有加载它的资产说没有找到 domain.com/css 虽然它必须是这个 domain.com/Virtual Direcory/css

When you do the build, you can specify the --deploy-url option进行构建时,可以指定--deploy-url选项

ng build --deploy-url /virtualDirectory

This will add the specified prefix to the scripts这会将指定的前缀添加到脚本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM