Setting up Content Delivery for the sample single-machine installation
Use the PowerShell Content Delivery express installation script to install the SDL Web server-side Content Delivery microservices.
Procedure
- Open a Windows command prompt.
- Enter the following command:
set JAVA_HOME="c:\Program Files\Java\jre.VERSIONwhere VERSION is the specific version of Java 8 installed on your system, for example
1.8.0_112. (The Content Manager installer will have installed Java if you did not yet have it installed on your machine.) - Open Windows Explorer.
- Create the folder c:\SDLCDinstall\.
- Access the SDL Web installation media.
- Go to the Content Delivery\ folder.
- Copy the resources\ folder with all of its contents, including subfolders, to c:\SDLCDinstall\.
- Create the folder c:\SDLCDinstall\roles\.
- On the installation media, navigate to the Content Delivery\roles\ folder.
- From the installation media, copy the following folders with all of their contents, including subfolders, into the c:\SDLCDinstall\roles\ folder:
- context\
- deployer\
- discovery\
- preview\
- session\
- Go to c:\SDLCDinstall\resources\quickinstall\.
- Open setenv.ps1 in Notepad or another plain-text editor.
- Change the values of the following properties as indicated:
Property Value $delivery_vars["CONTENT_DEFAULT_SERVER_NAME"]"localhost"$delivery_vars["CONTENT_DEFAULT_DATABASE_NAME"]"Tridion_Broker"$delivery_vars["CONTENT_DEFAULT_USER"]"TridionBrokerUser"$delivery_vars["CONTENT_DEFAULT_PASSWORD"]"tridion"$delivery_vars["PREVIEW_DEFAULT_SERVER_NAME"]"localhost"$delivery_vars["PREVIEW_DEFAULT_DATABASE_NAME"]"SDLWeb_xpm_sample"$delivery_vars["PREVIEW_DEFAULT_USER"]"TridionBrokerUser"$delivery_vars["PREVIEW_DEFAULT_PASSWORD"]"tridion"$delivery_vars["DEPLOYER_STATE_DEFAULT_SERVER_NAME"]"localhost"$delivery_vars["DEPLOYER_STATE_DEFAULT_DATABASE_NAME"]"Tridion_Broker"$delivery_vars["DEPLOYER_STATE_DEFAULT_USER"]"TridionBrokerUser"$delivery_vars["DEPLOYER_STATE_DEFAULT_PASSWORD"]"tridion" - Save and close setenv.ps1.
- In Windows Explorer, create a new c:\SDL\ and a subfolder c:\SDL\Web\.
- From the folder that contains your license files, copy cd_licenses.xml to c:\SDL\Web\.
- Start PowerShell as an administrator-level user by right-clicking the PowerShell icon and selecting Run as administrator, even if you are already logged in to Windows as an administrator-level user.
The PowerShell console opens.
- Enter the following command:
Set-ExecutionPolicy UnrestrictedAnswer A (All) when prompted.
- Navigate to c:\SDLCDinstall\resources\quickinstall\
- Enter the following command:
.\quickinstall.ps1 -enable-discovery -enable-context -enable-deployer-combined -enable-preview -enable-session -auto-register -discovery-url http://localhost:8082/discovery.svcThe express installation script installs and registers the selected microservices. Disregard all warnings that appear. - In Windows Explorer, go to c:\SDL\Web\discovery\config\.
- Open cd_storage_conf.xml in Notepad or another plain-text editor.
- Within the
<Roles>section, insert the following child element:<Role Name="WebCapability" /> - Save and close cd_storage_conf.xml.
- In Windows Explorer, copy the file discovery-registration.jar from the folder c:\SDLCDinstall\roles\discovery\registration\ to the folder c:\SDL\Web\discovery\config\.
- In the Windows command prompt, go to c:\SDL\Web\discovery\config\.
- Run the following command:
java -jar discovery-registration.jar update - Remove the folder c:\SDLCDinstall\ to free up disk space on your machine.