Skip to content

Instantly share code, notes, and snippets.

@spektraldevelopment
Last active June 5, 2024 18:21
Show Gist options
  • Save spektraldevelopment/3ead0091be6afd4d39913e378c48445f to your computer and use it in GitHub Desktop.
Save spektraldevelopment/3ead0091be6afd4d39913e378c48445f to your computer and use it in GitHub Desktop.
A simple AEM author start up script for local development
#!/usr/bin/env bash
# For terminal output colors
GREEN="\033[1;32m"
NOCOLOR="\033[0m"
# Declare a variable to store the port number
port=4502
echo -e "${GREEN}=============================================${NOCOLOR}"
echo -e "${GREEN}*********************************************${NOCOLOR}"
echo " "
echo -e "${GREEN}STARTUP AUTHOR INSTANCE${NOCOLOR}"
echo -e "${GREEN}RUNNING ON PORT: $port${NOCOLOR}"
echo " "
echo -e "${GREEN}*********************************************${NOCOLOR}"
echo -e "${GREEN}=============================================${NOCOLOR}"
# Kill any process running on the target port
kill -9 $(lsof -i:$port)
# Start the AEM instance
java -jar aem-author-*.jar -gui -port $port -debug 5005
@spektraldevelopment
Copy link
Author

spektraldevelopment commented Jun 5, 2024

Place this file in the same folder as the jar and crx-quickstart directory. This script can be reused for publish as well by changing the port to 4503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment