优化 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 extensionsextName 'spartacussampledata'extName 'electronicsstore'extName 'yacceleratorbackoffice'extName 'yacceleratorcore'extName 'yacceleratorfacades'extName 'yacceleratorinitialdata'extName 'yacceleratorstorefront'extName 'commerceservicesbackoffice'extName 'commercewebservices'extName 'commercewebservicescommons'// promotion-engineextName 'promotionenginebackoffice'extName 'promotionenginesamplesaddon'extName 'promotionengineservices'extName 'solrserver'extName 'cms2'extName 'cmsbackoffice'extName 'cmsocc'extName 'cmswebservices'// yformsextName '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:
如何解決 license 問題:
訪問 SAP license 網站:
點擊 add license key 按鈕:
hardware key 選擇:Y4989890650
生成了一個 CPS.txt 文件:
使用命令行 install.bat -install CPS.txt 安裝 license:
只花了三分多鐘就成功啟動了:
重啟后,license 更新成功:
更多Jerry的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的优化 recipe 达到快速启动 SAP Hybris Accelerator Storefront 的方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 贪婪洞窟2坚韧是什么(人贪婪的本质是什么
- 下一篇: Angular Change Detec