How to Setup Dispatcher for AEM Cloud on Local (Mac OS)
2 min readApr 18, 2024
Pre — Requisites
- Install Docker from its official website https://docs.docker.com/desktop/install/mac-install/
- Download AEM Cloud SDK from Adobe Software Distribution Portal.
- Author and Publish instances should be up and running in the local.
Steps
- In case of Cloud AEM SDK, Dispatcher files are already provided with the SDK zip file.
- Navigate to the AEM SDK folder and run the following command, it will give the file permissions to be run as a program: chmod +x aem-sdk-dispatcher-tools-<version>-unix.sh
- Run the following command to extract the dispatcher files: ./aem-sdk-dispatcher-tools-<version>-unix.sh
- The dispatcher files will now be extracted inside the dispatcher-sdk folder, Navigate to the dispatcher SDK folder and validate the dispatcher configuration using below command (Make sure the docker is already running): ./bin/validate.sh ./src. You should get something like below, which means the validation is successful.
- Run the below command to start the dispatcher: ./bin/docker_run.sh ./src host.docker.internal:4503 8080
- After the above command is executed successfully, try opening a published page from localhost:8080 like below (I have used the WKND site for demo)
- Open Docker, you will find a process running over there, this is the dispatcher running on your local:
- Click on it and navigate to the ‘Files’ tab, you can find the cache created here:
- Congratulations!! you just setup Dispatcher in your local.