SAP Commerce Cloud SmartEdit 的安装

执行手动安装时要包含的扩展,必须在 localextensions.xml文件中包含以下扩展:

  • cmsbackoffice
  • cmssmartedit
  • cmssmarteditwebservices
  • cmswebservices
  • permissionswebservices
  • previewwebservices
  • smartedit
  • smarteditaddon
  • smarteditwebservices
  • ysmarteditmodule (前提是有扩展 SAP Commerce framework or CMS functionality 的需求)

使用下面的命令行手动安装 addon:

ant addoninstall -Daddonnames=smarteditaddon -DaddonStorefront.yacceleratorstorefront=

为确保正确设置访问权限以便您可以登录SmartEdit,您必须执行以下操作之一:

  • 在 SAP Commerce 管理控制台(Administration Console)中选择所有与SmartEdit 相关的扩展, 然后运行 hybris update;
  • 执行命令行:进入文件夹,$HYBRIS_BIN_DIR/platform,运行 ant updatesystem.

SAP Commerce 不包含与 npm 相关的第三方 JavaScript 库。这会影响使用这些库的任何扩展和插件,其中包括 SmartEdit 扩展。要在这些扩展和插件上启用完整的构建和测试功能,您必须通过 npm 下载所需的库。

确认 ant 相关的环境变量已经成功设置,进入文件夹 $HYBRIS_BIN_DIR/platform,执行命令行 ant npminstall.

如果在生产环境中部署了 SmartEdit , SAP建议如下:

  • 配置您的服务器,使其防止通过 X-Powered-By 头部字段来显示 Web 服务器 使用的集体技术信息。
  • 配置您的 Web 服务器,以防止从其 HTTP 响应的 SERVER 头部字段泄漏一些技术信息。
  • 确保在 Web 服务器配置中禁用了 HTTP 协议的 options 方法。

如果要搭建 smartedit 的开发环境,确认 recipe 已经生成了$HYBRIS/platform/localextensions.xml 文件,包含了下列 extensions:


    
        ...
        
        
        
        
        
        
        
        
        
        
        ...
    

然后进入文件夹 $HYBRIS_BIN_DIR/platform,

smarteditaddon 应用到扩展之后的 SAP Commerce storefront,该 Storefront 基于 yacceleratorstorefront template extension 扩展而成:

ant addoninstall -Daddonnames="smarteditaddon" -DaddonStorefront.yacceleratorstorefront=""

分别执行下列命令行:

  • To initialize SAP Commerce: ant initialize
  • To update SAP Commerce: ant updatesystem

执行命令行:ant build

执行此命令会在 smartedit 扩展、cmssmartedit 扩展以及使用 ysmarteditmodule创建的任何自定义扩展中构建源代码。该命令在扩展和 npmancillary 之间创建符号链接,以便第三方 npm 相关的 JavaScript 库可以在 smartedit、smartedit 扩展、 cmssmartedit 扩展和任何自定义 SmartEdit 扩展中使用。

你可能感兴趣的:(SAP Commerce Cloud SmartEdit 的安装)