Skip to content

gavoja/aemsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aemsync

AEM (Adobe CQ) Synchronization Tool.

Installation

With npm do:

npm install aemsync -g

Usage

aemsync -t targets [-i interval] -w path_to_watch

-t: Comma separated list of hosts.
-w: Path to watch.
-i: Update interval; default 300 ms.
-d: Enable debug mode.

Example

aemsync -t http://admin:admin@localhost:4502 -w ~/workspace/my_project

The path has to contain jcr_root folder. File system changes inside the folder will be picked up and pushed to AEM instance as a package. There is no vault dependency.

Sync interval is the time the syncer waits for changes before the package is created. In case of multiple changes occuring at the same time (e.g. switchig between code branches), we want to avoid creating a new pachage for each file, but rather send all in one go. Lowering the value removes the delay from a single change but increases the delay for multiple changes.

On startup, a scan for all directories within the path to watch is necessary in order to attach the file system handlers. Depending on the size this may take a while.