admin管理员组文章数量:1402913
I have a docker compose Django project that runs fine in a terminal on the server and I'm trying to set up PyCharm for development debugging. In my docker-compose.py
I have a volume mapping the project root on the host file system to the container:
Volumes:
- ../:/code
So I would expect that when the project is run/debug it would build the root project directory in the container directory /code
but instead it is in /opt/project
directory.
Docker is running on Ubuntu 24.04 on an ESXi 8 VM.
How can I set the path of the project in the container to use /code and not /opt/project?
I've tried path mapping in the run/debug configurations
/opt/my_app=/code
setting the working directory
/opt/my_app
I've also spent hours looking online for any information regarding this, but most of what I can find is for older versions of PyCharm and is no longer valid.
本文标签: PyCharm 2024 35 Django docker compose set project path in containerStack Overflow
版权声明:本文标题:PyCharm 2024. 3.5 Django docker compose set project path in container - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744364001a2602682.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论