I have a folder called 'uploads', which contains gigabytes of test data on my local test server. It also contains a necessary .htaccess file.
I need to exclude the directories inside 'dist/uploads' but I want to include 'dist/uploads/.htacess' when I deploy the project to the server.
There appears to be no way of doing this. I can't imagine I'm the first to encounter this problem.
What can I do?
Side question - Uploading my project to the remote server takes a ridiculously long time. Checking each individual file seems a terribly inefficient way of syncing between local and remote when I have server priveleges. What if I compiled the project as an archive, upload that, then on the server I could run a quick program that extracted the archive and replaced the relevant files.
Is there a tool, maybe a nodejs script out there that does something like this?