Tools to make working with CQ/AEM a little faster/easier/better
- Ruby
- Java 7
- DirectoryWatcher
Bash gist below, but follow the comments if you want to install other ways.
# Get the stuff
git clone https://github.com/joshes/cq-tools.git
git clone https://github.com/joshes/directory-watcher.git
# Ensure you have these gems
gem install activesupport json nokogiri
# Build the DirectoryWatcher and add to the path
cd directory-watcher
mvn clean package
echo "exec java -jar `pwd`/target/DirectoryWatcher.jar \"\$@\"" >> DirectoryWatcher
echo "export PATH=`pwd`:$PATH" >> ~/.bash_profile
chmod a+x DirectoryWatcher
# Install the cq-tools default configuration and add to path
cd ../cq-tools
cp -r .cq ~
echo "source ~/.cq/env" >> ~/.bash_profile
echo "export PATH=`pwd`:$PATH" >> ~/.bash_profile
- Edit ~/.cq/config.json & ~/.cq/project-config.json to your requirements, adding as many servers and/or workspaces as required
- Run: cq-set-server and choose the server you want to use for the current session
- Run: cq-set-workspace and choose the workspace you want to use for the current session
These scripts effectively manage the ~/.cq/env file for you based on your configuration settings.