使用msdeploy安装ng build创建的dist文件夹

问题描述 投票:0回答:1

有没有办法使用msdeploy将ng build --prod(dist文件夹)的输出安装到IIS中?

我正在尝试使用此命令:

msdeploy.exe -verb:sync -source:package=c:\Workspace\MyProject\dist.zip  -dest:auto -setParam:name="IIS Web Application Name",value="Default Web Site"

这失败了:

Error: A '-dest' argument must be specified with the 'sync' verb.
Error count: 1.
angular iis msdeploy
1个回答
0
投票

好的,让它使用这个命令,我只使用我的dist文件夹:

msdeploy.exe -verb:sync -source:iisApp=C:\Path\To\dist -dest:iisApp="Default Web Site/MyApplication"
© www.soinside.com 2019 - 2024. All rights reserved.