问:Tooltwist 8.3 部署导航点未正确生成

Q: Tooltwist 8.3 deployment navpoints not generating properly

我使用 Tooltwist 作为开发 Web 项目的平台,作为使用 ToolTwist 的一部分,我们使用命令行部署到我们的服务器。

这是我的问题,如果我们 运行 命令 'tooltwist -i deploy' 在我们的开发服务器上部署项目,它会提示一条消息说 构建成功 完成,没有错误。

但是在启动我们的服务器并浏览我们的网站后,我们总是看到一个扭曲的页面。我检查了我发现的 tooltwist 日志文件。

2015-04-27 18:34:00,419 警告 t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css:com.myrp.widgets.ConditionalStyleSheetWidget 2015-04-27 18:34:00,420 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css 2015-04-27 18:34:00,420 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css 2015-04-27 18:34:00,424 WARN t.w.WbdGenerator - myrp.pages.hub_p_adminLogin@14:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.zones.global.css 2015-04-27 18:34:00,424 WARN t.w.WbdGenerator - myrp.pages.hub_p_adminLogin@13:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.zones.hub_global.css 2015-04-27 18:34:00,425 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css 2015-04-27 18:34:00,425 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css 2015-04-27 18:34:00,425 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2:com.myrp.widgets.ConditionalStyleSheetWidget 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css 2015-04-27 18:34:00,426 WARN t.w.WbdGenerator - myrp.products.transaction_z_report_styles@2 使用的未知网站资产 stylesheet/myrp.products.transaction_report_style.css:com.myrp.widgets.ConditionalStyleSheetWidget

对这个问题有什么想法吗?

根据您的日志文件,我认为您遗漏了那些 css 文件,而 tooltwist 在生成导航点时找不到这些文件,导致页面失真。

可能有用的解决方案是:如果您能够在您的 ttsvr 项目“/ttsvr/generated/stylesheet”文件夹中找到那些 css,请尝试复制它们并粘贴到您的项目文件夹 'PROJECT_NAME/WebContent/stylesheet' 然后提交它们,如果您正在使用 artifactory,则需要使用命令 'gradle aP' 将您的更改发布到 artifactory,然后再次尝试 运行 部署命令。

希望对您有所帮助..谢谢