iamdork / compose

Command line replacement for docker-compose, adding dork magics.
MIT License
2 stars 2 forks source link

Improve sync ignore #47

Closed sepal closed 7 years ago

sepal commented 7 years ago

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.