SAP Commerce Cloud如何针对Spartacus进行安装
如下图所示:
network底部有1.1 MB transferred over network和5.1 MB resources loaded by the page. 这两个大小有何区别?
有中文博客介绍说transferred over network是通过网络加载的资源尺寸,而resources loaded by the page不仅包含前者,也包含直接从浏览器缓存里加载的资源尺寸。这种说法不完全准确,更精确的说法是,resources loaded by the page统计的是前端页面加载的所有资源经过解压之后的原始大小。
如图,在打开Chrome开发者工具的Use Large request rows选项, 就能显示出经过网络加载资源压缩过后的原始大小,如下图所示:
以上说明来自Google官网:
https://developers.google.com/web/tools/chrome-devtools/network/reference#uncompressed
https://stackoverflow.com/questions/56043151/what-is-the-difference-between-transferred-and-resources-in-chrome-devtools
(1) 准备好Commerce Cloud 2005和Spartacus addon的压缩包:
(2) Move the file custom.properties from spartacussampledataaddon/resources/installer/customconfig to installer/customconfig.
(3) In hybris/bin文件夹,创建custom文件夹,把整个spartacussampledataaddon文件夹放到hybris/bin/custom下去。
把installer/recipes文件夹下的cx复制一份出来,重命名成cx-for-spa:
打开cx-for-spa文件夹里的build.gradle, 把extName 'spartacussampledataaddon’的注释去掉。
(4) 进入install文件夹,执行命令行:
install -r cx-for-spa进行安装:
静候其build结束。
(5) 执行命令行install.bat -r cx-for-spa initialize
更多Jerry的原创文章,尽在:“汪子熙”: