美文网首页SAP 修行SAP
SAP Commerce Cloud 的本地开发

SAP Commerce Cloud 的本地开发

作者: _扫地僧_ | 来源:发表于2021-08-21 10:43 被阅读0次

    英文版

    SAP Commerce Cloud provides a standardized, automated end-to-end build and deployment solution for Commerce projects to release code from the repository to the cloud.

    SAP Commerce Cloud 为电商项目提供了一个标准化,自动化的端到端构建和部署解决方案,使得代码仓库的代码能够高效地发布到云端。

    Many aspects of SAP Commerce Cloud overlap with the capabilities of continuous integration (CI) and continuous delivery (CD) solutions such as Jenkins.

    SAP Commerce Cloud 的很多特性都和 持续集成 CI,持续交付 CD 等解决方案比如 Jenkins 所重合。

    SAP Commerce Cloud is not a wholesale replacement for Jenkins, which supports many other capabilities and use cases beyond the scope of SAP Commerce Cloud.

    Release Cadence - SAP Commerce Cloud 的发布节奏

    As outlined in "Getting Started with SAP Commerce Cloud", your SAP Commerce Cloud solution may consist of a few different code bases that are are all merged as part of the build and deploy process.

    SAP Commerce Cloud 解决方案由下列基准代码组成,其都是构建和部署流程的一部分。

    1. Automatically Upgraded - 自动升级

    SAP Commerce Cloud automation (release notes) - feature releases typically occur every 1-2 months, patches ongoing.

    每一到两个月升级一次。

    1. SAP Commerce Cloud Extension Packs (release notes, documentation) - available only for Commerce Cloud on Public Cloud customers using SAP Commerce Core 1905. Releases occur each month.

    Extension Packs,只有使用部署在的公有云上的 Commerce Cloud 客户才能使用。每月发布一次。

    Connect your Code Repository

    SAP Commerce Cloud takes into account your code customizations which are stored in a Git-based code repository.

    SAP Commerce Cloud 支持客户把自己的定制化代码存储到 Github 仓库里。

    SAP Commerce Cloud typically uses a cloud setup of Apache Solr which includes three Zookeeper nodes and two Solr nodes.

    SAP Commerce Cloud 使用基于云搭建的 Apache Solr,包含三个 Zookeeper 节点和两个 Solr 节点。

    You can configure your code repository to customize how Solr is configured (for example, solrconfig.xml) to ensure it works the way you need it to.

    可以配置代码仓库,实现对 Solr 的定制化,比如修改 solrconfig.xml.

    You should try to include only the languages you will support, as unnecessary languages can slow down the build and deploy cycle.

    不必要的语言包会降低构建和部署的速度。

    1. In the root of your code repository, create a folder for storing language packs, such as "LANGUAGES”.

    2. Add your language pack zip files to this folder.

    3. Add the following property to your manifest.json with only the languages you have.

        "useConfig":
    {
            ...
            "languages" : {
                "location": "_LANGUAGES_"
            }
    }
    

    Extensions

    为了使您的配置在本地和 SAP Commerce Cloud 环境之间保持同步,您应该将 manifest.json 文件配置为指向您的 localextensions.xml 文件,如产品文档的此页面中所述。 如果您有一些在本地使用的扩展,则应使用“排除”选项以确保它们未部署在您的 SAP Commerce Cloud 环境中。

    SAP Commerce Cloud 并非支持所有扩展。 在您的 localextensions.xml 中包含扩展之前,请查阅兼容性矩阵页面以确定它是否受支持。

    HTTP Session Failover

    绑定到单个集群节点的客户端使用的会话与集群节点保持一致。 因此,SAP Commerce Cloud 集群使用粘性会话。 此外,SAP Commerce Cloud 提供会话故障转移机制。 有关更多详细信息,请参阅 HTTP 会话故障转移

    结论

    如果您熟悉开发 SAP Commerce 解决方案,那么迁移到 SAP Commerce Cloud 主要需要调整代码在存储库中的结构。 此外,它还需要调整如何最好地配置您的 manifest.json 文件以及如何利用日志记录来发挥您的优势。 通过了解您可以使用 SAP Commerce Cloud 做什么和不可以做什么,您将能够更好地交付成功的 SAP Commerce Cloud 解决方案。

    相关文章

      网友评论

        本文标题:SAP Commerce Cloud 的本地开发

        本文链接:https://www.haomeiwen.com/subject/notaultx.html