Deployment Exclude File Pattern
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?
请先登录再写评论。
Hi there,
Sounds similar: https://youtrack.jetbrains.com/issue/WI-24735
True -- this IDE checks if it does not override newer files etc. There are some settings for that -- see if turning them off will do any better.
IDE has no support for such deployment. There is a similarly sounding ticket ( https://youtrack.jetbrains.com/issue/WI-675 ) but I do not think it will get implemented any time soon (it's very specific scenario and not really worth time spent).
If you need to upload and extract whole folder/set of folders then doing it manually is rather easy (especially if you have SSH/remote access)