Deploy the Commerce Engine
The Sitecore Commerce Engine is built as a thin ASP.NET Core application, and can be hosted in IIS to run as a service using DNX. This includes global policies, global entities, and tracks any created environments. The Sitecore Commerce Engine is also extensible by plugging into the Bootstrap Pipeline, which allows plugins to initialize and populate their own artifacts. Worker processes only need a link to the policy store to bootstrap.
Deploying the Commerce Engine involves the following tasks:
Compile the Commerce Engine
To compile the Commerce Engine:
-
Install the Sitecore Commerce SDK by unzipping the
Sitecore.Commerce.SDK.1.x.xxxx.zipfile, located at the root of the Sitecore Commerce release package. -
Open a command prompt and run the restore command from the SDK root folder:
RequestResponsedotnet restoreNoteBy default, the
dotnet.exeis installed underc:\Program Files\dotnetif the path has not been added automatically. -
Run the publish command to create a build of the Sitecore Commerce Engine in a local folder. For example:
RequestResponsedotnet publish .\Sitecore.Commerce.Engine -o c:\Deploy\Sitecore.CommerceNoteMake sure that the installed version of the .NET Framework is the DevPack/SDK edition, not the Runtime edition. The
dotnet publishcommand will fail if only the Runtime edition is installed.
Create the Commerce Server databases
To create the SitecoreCommerce_Global and SitecoreCommerce_SharedEnvironments databases:
-
Open SQL Server Management Studio.
-
Run the
CommerceServicesDbScript.sqlscript (located in the Sitecore SDK directory).
Install the Commerce Engine service
To install the Commerce Server Engine service:
-
Open IIS Manager.
-
Create a new Application Pool called CommerceAuthoring and set the following:
-
Select No Managed Code for the .NET CLR Version of the App Pool.
-
Select Integrated for Managed pipeline mode.
-
Set the Identity to use the same user account that you used for Commerce Server as the identity.
-
-
Create a new IIS Site called CommerceAuthoring:
-
Keep the default binding settings with the exception of the port, which is set to 5000.
-
Set the Application Pool to the application pool you created in step 2.
-
Create a new folder in
C:\inetpubcalledCommerceAuthoringand set the Physical Path to this new folder.
-
-
Copy the contents of the
c:\Deploy\Sitecore.Commercefolder (created when you compiled the Commerce Server Engine) to the new physical directory you created in step 3. -
Verify that you can retrieve metadata from the Commerce Engine service via the following URL: http://localhost:5000/api/$metadata.