02/27/2017 02:22 PM Deploy platform and storefront to one Azure application
Virto Commerce

Deploy platform and storefront to one Azure application


Step-by-step guide

  1. First create storefront azure deployment as it is described in Deploy from GitHub to Microsoft Cloud Azure with one exception, there is no need to change default value for 'Virto Commerce Manager Url' to 'http://localhost/admin' and 'Content Storage Connection String' to 'provider=LocalStorage;rootPath=~/App_Data/cms-content'. We will cahange these settings later. Deploy storefront
  2. Download the latest precompiled release Virto Commerce platform from GitHub to local disk - 'C:\tmp\VirtoCommerce.Platform.2.12.4.zip'.
  3. Open Kudu management console from previously deployed storefront azure app service https://{{your-storefront-application-url}}.scm.azurewebsites.net/DebugConsole
  4. Navigate to the 'D:\home\site\wwwroot'
  5. Drag and drop local 'C:\tmp\VirtoCommerce.Platform.2.12.4.zip' file to 'D:\home\site\wwwroot' folder drag platform zip
  6. Rename 'VirtoCommerce.Platform.Web' folder to 'platform' with next command mv VirtoCommerce.Platform.Web platform rename folder
  7. Go to 'Sql databases' in azure portal and create new SQL Server with a name 'virtocommerce-db' and database with a name 'virtocommerce' create database
  8. Go to the storefront app service settings and add new virtual application '/admin' with path 'site\wwwroot\platform' add admin application
  9. Add new connection string 'CmsContentConnectionString' with value 'provider=LocalStorage;rootPath=~/../App_Data/cms-content' to use shared CMS folder between manager and storefront
  10. Add new sql connection string 'VirtoCommerce' with a value copied from azure SQL server details created in previous step. 'Server=tcp:virtocommerce-db.database.windows.net,1433;Initial Catalog=virtocommerce;Persist Security Info=False;User ID=virto;Password={{your-db-password}};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;'.
  11. Add asset connection string 'AssetsConnectionString' with follow value 'provider=LocalStorage;rootPath=~/../App_Data/assets;publicUrl=http://{{your-storefront-application-url}}.azurewebsites.net/admin/assets'
  12. Change existing setting 'VirtoCommerceBaseUrl' to value with your VC admin url 'http://{{your-storefront-application-url}}.azurewebsites.net/admin' change app settings
  13. After all the above steps completed, Virto Commerce Manager will be available using the following url https://{{your-storefront-application-url}}.azurewebsites.net/admin