在 virtoCommerce 中,当将 Web 应用程序部署到专用服务器时,如何配置店面的 "ContentConnectionString"?

in virtoCommerce, when Deploy web applications to dedicated server, How to configure "ContentConnectionString" of storefront?

我研究了下面的 link: Storefront Source Code Getting Started.

根据"Configuring content connection string"一节,我意识到需要放置admin的物理地址"cms-content"。 但我们已经将网络应用程序(管理员和店面)部署到专用服务器。 因此,对于具有这些条件的配置,我阅读了下面的 link: Deploy web applications to dedicated server

但是这个link还不清楚"ContentConnectionString"是如何初始化的。

ContentConnectionString storefront 设置指向主题文件存储的位置,默认值为 ~/App_Data/cms-content

VC 平台,安装了模块 vc-content 允许从管理器 UI 管理主题文件并具有类似的设置 CmsContentConnectionString

如果店面和平台安装在相同的 Azure 应用程序或专用服务器上,这两个设置应指向相同的物理位置,并且在平台 Web.config 和 provider=LocalStorage;rootPath={ vc-platform physical path}\App_Data\cms-content 中具有跟随值 provider=LocalStorage;rootPath=~\App_Data\cms-content店面 Web.config。

对于 VC 平台和店面分开安装的情况,需要使用 azure blob 存储 provider=AzureBlobStorage;rootPath=cms-content;DefaultEndpointsProtocol=https;AccountName=yourAccountName;AccountKey=yourAccountKey 在店面和平台之间共享主题文件。

我们强烈建议在 GitHub 存储库中使用存储和更改您的主题,并使用 CI(持续集成任务)更新生产主题,并使用管理员 UI 主题管理仅用于紧急修复或其他非历史性更改。