日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url

發布時間:2023/12/19 windows 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

需求

I would like to set environment specific OCC Base URLs

  • Development
  • Staging
  • Production

現在遇到的問題

Currently in the build job, SAP Commerce Cloud always run ng build command which always pick the default app.module.ts irrespective of maintaining this property in environment specific basis, hence all environments will have one environment’s OCC base urls which is not correct.

SAP Commerce Cloud does not provide this option in the specific environment occ base URL for build and deployment

文檔:https://sap.github.io/spartacus-docs/configuring-base-url/

然而,This link does not say How to maintain three different OCC base urls for 3 environments

Dear customer, you can set your js app so that it automatically adds the baseurl. See help topic for hosting javascript apps:

https://help.sap.com/viewer/b2f400d4c0414461a4bb7e115dccd779/v2011/en-US/63577f67a67347bf9f4765a5385ead33.html

In your Spartacus app:

  • index.html has to have

  • In app.module.ts, remove or comment out baseUrl

  • During build, the hosting service will substitute the proper server value.

    總結

    以上是生活随笔為你收集整理的SAP Spartacus部署到SAP Commerce Cloud,不同的系统设置不同的OCC Base url的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。