How do you ignore folders when pushing from local to wpengine?

How do you ignore folders when pushing from local to wpengine? I want to ignore all files in my node_modules folder when uploading but can’t figure out how to do that. I see there are other folks trying to figure this out as well on the board. Please help.

Thanks!

I am also interested in this - I use npm and it pushes everything

@betalocal @levine have you tried to use the .wpe-pull-ignore and .wpe-push-ignore files? Add a reference for node_modules in the push file and give it a try.

Interesting. While Im not working in this scenario, could this be used to ignore the download of the mu-plugins and some that WPE for examples requires to run? They (still) cause issues and warning on a local site. Maybe this could be used to mitigate the problem?

@sebastian its worth a try! I havent dug very deep into this yet.

Where should one put these ignore-files?

in the /app/public directory. basically the root directory of your WP install.

You also need to initialize your git repository in this directory too.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.