Just a quick note on one of the best practices for AEM development; once you are done with development and unit testing in your local “Author” instance, take the time to run your code in a local production “Publish” server prior to releasing it to a client. AEM makes is pretty staright-foward to setup your environment.
Simply follow the steps outlined below to set up the environment in minutes:
- Create a folder called “Publish” on your file system
- Ensure that a copy of the executable JAR file and the license file are copied in it.
- Rename the executable JAR file to “cq-publish-p4503.jar” (without quotes)
- Open up a terminal (Mac) or command (Windows) window and type: “java -jar cq-publish-p4503.jar” (without quotes)
Voilla! Your server is up and running. Deploy your custom code and you are all set.
Happy Coding!
Be First to Comment