3 ms·
I have a Django+Vue app with Docker Compose and I mounted the whole project as a volume for both python and js containers and the venv (python packages are inst
by aitchnyu 5y ago
I have a Django+Vue app with Docker Compose and I mounted the whole project as a volume for both python and js containers and the venv (python packages are installed here) and node_modules are in the volume. My IDE (Pycharm) uses those dirs for code completion. If I move them within container, my IDE can't do code completion and I will have to rebuild image each time I install packages. Or is there a solution?
- nickjj 5y agoI'm not sure how PyCharm deals with Docker but VSCode has a "remote containers" feature. You can run your app in a container and volume mount your code so you don't need to rebuild it, but the remote container feature lets you get full editor support (code complete for everything, etc.) with only defining a few lines of JSON. Maybe check around to see if PyCharm has a similar feature?