Currently the hotcode plugin has a fixed list of file not to sync, instead of respecting the docker & dork ignore files. This means that files might not be ignored that should be ignored(like node_modules) and there also files missing, that are dork specific, which the syncing should ignore.
This PR fixes the issue by expanding the list and adding a routine which tries to read all dork & docker ignore files.
I think we should also kick the .git out of this fixed list. If someone doesn't wants to not sync it, then it should be in a dockerignore file. The fixed list should only contain dork specific file patterns, which users might not know about.
Currently the hotcode plugin has a fixed list of file not to sync, instead of respecting the docker & dork ignore files. This means that files might not be ignored that should be ignored(like node_modules) and there also files missing, that are dork specific, which the syncing should ignore.
This PR fixes the issue by expanding the list and adding a routine which tries to read all dork & docker ignore files.
I think we should also kick the .git out of this fixed list. If someone doesn't wants to not sync it, then it should be in a dockerignore file. The fixed list should only contain dork specific file patterns, which users might not know about.