优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法

简介: 优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法

build.gradle 文件只需维护如下 extensions 即可:

apply plugin: 'installer-platform-plugin'
apply plugin: 'installer-addon2-plugin'
def platform = platform {
    localProperties {
        '# place your custom properties into this file instead of modifying the project.properties'
        '# all properties in this file have higher priority and will overwrite the platform/project.properties settings.'
        property '#mykey', '#myvalue'
        property '#hac.webroot', '/hac'
        property 'recaptcha.publickey', ''
        property 'recaptcha.privatekey', ''
        property 'googleApiKey', ''
        property 'website.electronics.http', 'http://electronics.local:9001/yacceleratorstorefront'
        property 'website.electronics.https', 'https://electronics.local:9002/yacceleratorstorefront'
        property 'backoffice.solr.search.index.autoinit', 'false'
    }
    afterSetup {
        ensureAdminPasswordSet()
    }
    extensions {
        // spartacus extensions
            extName 'spartacussampledata'
            extName 'electronicsstore'
            extName 'yacceleratorbackoffice'
            extName 'yacceleratorcore'
            extName 'yacceleratorfacades'
            extName 'yacceleratorinitialdata'
            extName 'yacceleratorstorefront'
            extName 'commerceservicesbackoffice'
            extName 'commercewebservices'
            extName 'commercewebservicescommons'
        // promotion-engine
            extName 'promotionenginebackoffice'
            extName 'promotionenginesamplesaddon'
            extName 'promotionengineservices'
            extName 'solrserver'
            extName 'cms2'
            extName 'cmsbackoffice'
            extName 'cmsocc'
            extName 'cmswebservices'
        // yforms
            extName 'orbeonweb'
            extName 'xyformsbackoffice'
            extName 'xyformsfacades'
            extName 'xyformssamples'
            extName 'xyformsservices'
            extName 'xyformsstorefrontcommons'
            extName 'xyformsweb'
    }
}
task createStoreFrontExt {
    doLast {
        def prePlatform = platformFactory.createPlatform()
        prePlatform.createConfigDirIfNotExist()
        prePlatform.resetConfig()
        prePlatform.createExtension {
            templateName 'yacceleratorstorefront'
            extensionName 'yb2bacceleratorstorefront'
            packageName 'de.hybris.platform.yb2bacceleratorstorefront'
        }
        def b2bPropFile = "${suiteHome}/hybris/bin/custom/yb2bacceleratorstorefront/project.properties"
        ant.replace(file: b2bPropFile, token: "storefrontContextRoot", value: "b2bstorefrontContextRoot");
    }
}
task setup(dependsOn: createStoreFrontExt) {
    doLast {
        platform.setup()
    }
}
task buildSystem(dependsOn: setup) {
    doLast {
        platform.build()
    }
}
task initialize(dependsOn: buildSystem) {
    doLast {
        platform.initialize()
    }
}
task start {
    doLast {
        platform.start()
    }
}
task startInBackground {
    doLast {
        platform.startInBackground()
    }
}
task stopInBackground {
    doLast {
        platform.stopInBackground()
    }
}

最后加载了 84 个 extensions:

22.png

如何解决 license 问题:

image.png

访问 SAP license 网站:

23.png

点击 add license key 按钮:

24.png

hardware key 选择:Y4989890650

25.png

生成了一个 CPS.txt 文件:

26.png

使用命令行 install.bat -install CPS.txt 安装 license:

27.png

只花了三分多钟就成功启动了:

28.png

重启后,license 更新成功:

29.png

目录
相关文章
|
7月前
|
存储 UED
SAP Hybris Revenue Cloud 和 SAP Subscription Billing 这两个产品的关联
SAP Hybris Revenue Cloud 和 SAP Subscription Billing 这两个产品的关联
50 0
|
7月前
什么是 SAP Hybris 中的 CMSLinkComponent
什么是 SAP Hybris 中的 CMSLinkComponent
43 1
|
8月前
|
存储 资源调度 JavaScript
SAP Commerce Cloud 如何为 Storefront 配置新的应用
SAP Commerce Cloud 如何为 Storefront 配置新的应用
41 0
|
8月前
|
存储 资源调度 JavaScript
SAP 电商云的 Spartacus Storefront 部署到 CCV2 的前提条件
SAP 电商云的 Spartacus Storefront 部署到 CCV2 的前提条件
37 0
|
7月前
|
搜索推荐 JavaScript 前端开发
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
Spartacus 开源项目给 SAP Commerce Cloud Storefront 共享的一些有用的特性介绍
30 0
|
7月前
|
自然语言处理 数据可视化
SAP Hybris 中的 CMSNavigationNode
SAP Hybris 中的 CMSNavigationNode
63 1
|
7月前
|
前端开发 JavaScript API
SAP Commerce Accelerator Storefront 到 Spartacus 的 page by page migration 策略
SAP Commerce Accelerator Storefront 到 Spartacus 的 page by page migration 策略
32 0
|
7月前
|
XML JSON 前端开发
用 SmartEdit 打开 SAP Commerce Cloud Storefront 时动态在 body 标签注入的 css class
用 SmartEdit 打开 SAP Commerce Cloud Storefront 时动态在 body 标签注入的 css class
35 0
|
7月前
|
Web App开发 JavaScript 前端开发
访问 SAP 电商云 Storefront 时遇到的 HTTP 403 错误
访问 SAP 电商云 Storefront 时遇到的 HTTP 403 错误
64 1
|
7月前
|
前端开发
SAP Hybris Category 显示在 Storefront 的判定条件
SAP Hybris Category 显示在 Storefront 的判定条件
40 0