Last active
June 5, 2024 18:21
-
-
Save spektraldevelopment/3ead0091be6afd4d39913e378c48445f to your computer and use it in GitHub Desktop.
A simple AEM author start up script for local development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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