WebDeploy 不获取更改的文件,仅获取新文件
从 SiteCore CMS 进行发布时,我使用 WebDeploy 将物理文件推送到目标位置。但我遇到了一些问题,
- WebDeploy 仅推送新创建的文件,但不推送任何已更改的文件
- 它使用需要 AD 管理员帐户才能运行的管理代理服务。有没有办法让它使用 IIS 代理? (我认为这可能与 SiteCore 本身有关)
- 如果无法让它与 IIS 代理一起工作,那么是否可以使其使用本地帐户而不需要 AD 管理员帐户?
I'm using WebDeploy to push physical files to a target location when doing a publish from the SiteCore CMS. I'm having some problems though,
- WebDeploy only pushes newly created files, but not any files that have changed
- It's using the admin agent service which requires an AD admin account to run. Is there a way to make it use the IIS agent instead? (I think that this may be related to SiteCore itself)
- If it isnt possible to get it working with the IIS agent, then is it possible to make it use a local account instead of requiring an AD admin account?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的经验是,您必须在 Sitecore 中使用管理代理服务进行 Web 部署。
我花了很多时间试图解决这个问题,但这似乎是不可能的。
这确实需要使用本地管理员帐户(这很糟糕..)
这个问题已经与 Sitecore 讨论过多次,我希望他们能在未来的版本中提出更好的解决方案。
正确设置后,Web Deploy 还将推送更新的文件。
Web 部署附带了一个命令行实用程序,您可以使用它来测试安装。
尝试使用该实用程序让一切正常运行,然后在 Sitecore 中重试。
确保使用管理服务进行测试。
您还能确认两台服务器上的日期/时间设置是否相同吗?
My experience is that you must use the admin agent service for Web Deploy in Sitecore.
I have spent many hours trying to work around this, but it seems impossible.
This does indeed require a local admin account to be used (which sucks..)
This issue has been discussed with Sitecore on several occasions and i hope they will come up with a better solution in future releases.
When properly set up, Web Deploy will also push updated files.
There is a command line utility that comes with web deploy which you can use to test the installation.
Try to get everything to work using that utility and then try it again in Sitecore.
Make sure you test using the admin service.
Can you also confirm that the date/time settings on both servers are the same?
不完全切中主题,但与 Web 部署产生了混合结果。我转而使用 Publication 方法以及 SlowCheetah XML Transforms(它允许您对构建配置的任何 XML 文件进行构建转换),并且效果非常好。
另外,它在运行 VS 的开发人员(或运行构建脚本的帐户)的权限下运行。
另外,它还具有“替换整个目录”或“根据需要更新”的功能。
...只是说...
Not precisely on-topic, but have had mixe results with Web Deployment. I switched to using the Publication method, along with SlowCheetah XML Transforms (which allows you to do build transforms on any XML file for your build configuraton) and it works really well.
Plus it runs under the authority of the developer running VS (or the account running the build script).
Plus it has features for "replace whole directory" or "update as needed".
...just sayin...