A
A
Alexander Evgenievich2015-07-06 16:01:21
Web development
Alexander Evgenievich, 2015-07-06 16:01:21

How to remove subdirectories from synchronization in Vagrant on Windows?

Hello.
Please tell me how you can remove a subdirectory from synchronization in the project folder.
The subdirectory is in: /app/ng/node_modules
Here is an example puphpet config:

synced_folder:
            fwAjidAZOZja:
                owner: www-data
                group: www-data
                source: ./../
                target: /app/
                sync_type: nfs
                rsync:
                    args:
                        - '--verbose'
                        - '--archive'
                        - '-z'
                    exclude:
                        - .vagrant/
                        - ng/node_modules/
                    auto: "false"

This option does not work. If something is created on the virtual machine in the folder, then the changes are displayed in windows and vice versa.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-07-06
@OnYourLips

Use not a subdirectory, but a folder outside /vagrant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question