我已按照here提及的步骤进行操作,但无法将项目同步到本地站点核心实例
Gulp Config:
var instanceRoot = "C:\\inetpub\\wwwroot\\SC82";
websiteRoot= instanceRoot + "\\Website";
栖息地开发设置:
<sc.variable name="sourceFolder" value="C:\Users\Habitat-master\src" />
<sc.variable name="rootHostName" value="SC82" />
发布目标:
<publishUrl>http://SC82</publishUrl>
Predicate Config:
<predicate type="Unicorn.Predicates.SerializationPresetPredicate, Unicorn" singleInstance="true">
<include database="master" path="/sitecore/content">
<exclude path="/sitecore/content/" />
</include>
<include name="Home" database="master" path="/sitecore/layout/Controllers/Home" />
<include name="Layout.Layouts" database="master" path="/sitecore/layout/Layouts/" />
<include name="Layout.Models" database="master" path="/sitecore/layout/Models/" />
<include name="Layout.PlaceholderSettings" database="master" path="/sitecore/layout/Placeholder Settings/" />
<include name="Layout.Renderings.Project" database="master" path="/sitecore/layout/Renderings/" />
<include name="System.Dictionary.Project" database="master" path="/sitecore/system/Dictionary/" />
<include name="System.Languages" database="master" path="/sitecore/system/Languages" />
<include name="System.Workflows" database="master" path="/sitecore/system/Workflows" />
<include name="Templates.Project" database="master" path="/sitecore/templates/" />
<include name="System.HtmlEditorProfiles" database="core" path="/sitecore/system/Settings/Html Editor Profiles/" />
</predicate>
错误: 无法执行初始序列化,因为谓词配置包括数据库中不存在的项路径。
有人可以帮助解决这个问题吗?在此先感谢
答案 0 :(得分:0)
最新代码和详细步骤已更新here:)
完美地工作
答案 1 :(得分:0)
Manully运行跟随unicorn同步网址,看看你会得到什么错误。 {您的本地主机网址} /unicorn.aspx?verb=Sync&configuration=&skipTransparentConfigs=0
此外,请确保安装&#34; 营销商8.2的Web表单&#34;因为Habitat使用它。