Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple directories to watch and sync #4

Open
skbhardwaj opened this issue Apr 30, 2019 · 3 comments
Open

Multiple directories to watch and sync #4

skbhardwaj opened this issue Apr 30, 2019 · 3 comments

Comments

@skbhardwaj
Copy link

Hello,

Could you please suggest if its possible:

  • to support multiple directories to watch & sync with aem
  • support multiple destinations(4502/4503) for sync

Also, can I use this in my gulp task?

Thanks,

@abmaonline
Copy link
Owner

abmaonline commented May 1, 2019

Yes, both are possible:

aemfed -t "http://admin:admin@localhost:4502,http://admin:admin@localhost:4503" \
-w "ui.apps/src/main/content/jcr_root/,ui.content/src/main/content/jcr_root/"

The statement above will listen for file changes in both:

  • ui.apps/src/main/content/jcr_root/
  • ui.content/src/main/content/jcr_root/

And sync all those changes to:

At the moment it is not really a gulp task, but as a work around you can have gulp output the files to one of the watched folders and aemfed should pickup the changes, upload them and refresh what has been changed.

Please let me know if this works for you 👍

@skbhardwaj
Copy link
Author

Yes, thank you.

@skbhardwaj
Copy link
Author

skbhardwaj commented May 11, 2020

Hello @abmaonline,

Hope you're doing great.

For one of my other projects (which has multiple packages), i've used it like:
"aemfed1": "aemfed -t 'http://admin:admin@localhost:4502,http://admin:admin@localhost:4503' -w **/**/src/main/jcr_root/"

Interestingly its just picking up(& watching) the first matched directory, and not all matching folders.

Our current directory structure contains multiple packages, something like this:

  • root_folder
    • /cms-module1/cms-module1-package/src/jcr_root/
    • /cms-module2/cms-module2-package/src/jcr_root/
    • /cms-module3/cms-module3-package/src/jcr_root/
      ..
      ..
  • package.json

Could you please once again help me out to watch all matching folders?

Thanks,

@skbhardwaj skbhardwaj reopened this May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants