Deploy Sitecore.HabitatHome.Commerce

What’s Sitecore.HabitatHome.Commerce?

HabitatHome Commerce Demo and the tools and processes in it is a Sitecore® solution example built using Sitecore Experience Accelerator™ (SXA) on Sitecore Experience Platform™ (XP) and Sitecore Experience Commerce™ (XC) following the Helix architecture principles.

Prerequisites

  • An instance of Sitecore Experience Platform within Sitecore Experience Commerce must be installed
  • Sitecore.HabitatHome.Platform must be deployed by the “Quick-Deploy” target build and then publish to the web. [Check out this link]

.\build.ps1 -Target "Quick-Deploy"

Getting Started

  • Clone the source code from github to your local (i.e. D:\sitecore):

https://github.com/Sitecore/Sitecore.HabitatHome.Commerce.git

  • We might need to change some default values under following files

cake-config.json

{
"WebsiteRoot": "E:\\Inetpub\\wwwroot\\habitathome.dev.local",
"InstanceUrl": "https://habitathome.dev.local/",
"SolutionName": "HabitatHome.Commerce.sln",
"ProjectFolder": "D:\\sitecore\\Sitecore.HabitatHome.Commerce",
"BuildConfiguration": "Debug",
"BuildToolVersions": "VS2017",
"RunCleanBuilds": false,
"MessageStatisticsApiKey": "97CC4FC13A814081BF6961A3E2128C5B"
}

deploy-commerce-engine.ps1

[string]$webRoot = "E:\Inetpub\wwwroot",

  • Open the PowerShell in administrative mode, and change location to the folder that was cloned from github

Set-Location D:\sitecore\Sitecore.HabitatHome.Commerce

  • Build and deploy Sitecore.HabitatHome.Commerce by executing the command

.\build.ps1 -Target Initial

  • Build and deploy commerce engine

deploy-commerce-engine.ps1 -Bootstrap -Initialize

[+] Publish sites

[+] Re-build the indexes

[+] Refresh Commerce Caches

What’s next???

Now, we can access the site at https://habitathome.dev.local

HabitatHome_Commerce

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s