02/27/2017 02:22 PM Deploy platform and storefront as a single Azure application
Virto Commerce

Deploy platform and storefront as a single Azure application

Updated:

Step-by-step guide

  1. Deploy storefront from GitHub to Azure as it is described in Deploy from GitHub to Microsoft Cloud Azure. Use the following values on the first step of the wizard:

    • Virto Commerce Manager Url: https://.azurewebsites.net/admin
    • Content Storage Connection String: provider=LocalStorage;rootPath=~/App_Data/cms-content Deploy storefront
  2. Open the Azure portal and add a new SQL Server and a new SQL database to the same resource group where the storefront application has been created. create database

  3. Open the database overview in the Azure portal, click Show database connection strings and copy ADO.NET connection string value.

  4. Download the latest precompiled release of the Virto Commerce Platform from GitHub to your local disk: 'C:\tmp\VirtoCommerce.Platform.2.12.4.zip'.

  5. Open the Kudu debug console for the storefront Azure app service https://.scm.azurewebsites.net/DebugConsole and navigate to the 'D:\home\site\wwwroot'

  6. Drag and drop your local 'C:\tmp\VirtoCommerce.Platform.2.12.4.zip' file to the right side of the 'D:\home\site\wwwroot' folder drag and drop platform zip

  7. Rename the 'VirtoCommerce.Platform.Web' folder to the 'platform' with the following command:

mv VirtoCommerce.Platform.Web platform

rename folder

8. Open the storefront app service and click Application settings

9. Add custom connection string 'CmsContentConnectionString' with value provider=LocalStorage;rootPath=~/../App_Data/cms-content to use shared CMS folder between manager and storefront

10. Add custom connection string 'AssetsConnectionString' with value provider=LocalStorage;rootPath=~/App_Data/assets;publicUrl=http://.azurewebsites.net/admin/assets

11. Add SQL connection string 'VirtoCommerce' with previously copied value. Change the server name, database name, user name and password with your values and make sure the MultipleActiveResultSets parameter is set to True:

`Server=tcp:.database.windows.net,1433;Initial Catalog=;Persist Security Info=False;User ID=;Password=;MultipleActiveResultSets=True;Encrypt=True;TrustServerCertificate=False;Connection Timeout=300;`

connection strings

12. Add new virtual application /admin with path site\wwwroot\platform

13. Add new virtual directory /admin/assets with path site\wwwroot\platform\App_Data\assets admin application 14. Click Save in the toolbar and navigate to the Virto Commerce Manager, which will have the following URL: https://.azurewebsites.net/admin