使用Docker Compose解释器的调试烧瓶强制关闭调试模式

时间:2019-11-16 17:27:02

标签: python flask docker-compose pycharm

我跟随this tutorial,经过很长一段时间,我才能够调试该应用程序。问题是当我希望在本地进行更改时重新启动应用程序时。问题是当我希望在本地进行更改时重新启动应用程序时。 Creo que问题和docker-compose que agrega PyCharm

/usr/local/bin/docker-compose -f $HOME//PyCharmProjects/flask-compose/docker-compose.yml -f $HOME/PyCharmProjects/flask-compose/docker-compose.dev.yml -f $HOME/.PyCharm2019.1/system/tmp/docker-compose.override.263.yml up --exit-code-from web --abort-on-container-exit web

此文件具有环境变量FLASK_DEBUG: "0",它将覆盖我可以设置的所有环境变量。

version: "3.7"
services:
  web:
    command:
    - "python"
    - "-u"
    - "/opt/.pycharm_helpers/pydev/pydevd.py"
    - "--module"
    - "--multiprocess"
    - "--qt-support=auto"
    - "--port"
    - "51422"
    - "--file"
    - "flask"
    - "run"
    environment:
      PYTHONPATH: "/app:/opt/.pycharm_helpers/pycharm_matplotlib_backend:/opt/.pycharm_helpers/pycharm_display:/opt/.pycharm_helpers/third_party/thriftpy:/opt/.pycharm_helpers/pydev:/home/fferrin/.PyCharm2019.1/system/cythonExtensions"
      FLASK_DEBUG: "0"
      FLASK_APP: "flask-compose.py"
      PYTHONIOENCODING: "UTF-8"
      IPYTHONENABLE: "True"
      IDE_PROJECT_ROOTS: "/app"
      PYTHONDONTWRITEBYTECODE: "1"
      PYDEVD_LOAD_VALUES_ASYNC: "True"
      PYTHONUNBUFFERED: "1"
      FLASK_ENV: "development"

您知道如何解决此问题吗?该文件是动态生成的,

谢谢!

PD:除非使用参数,否则我无法到达终点

network_mode: "host"
docker-compose.dev.yml

。可能是您必须更新仓库的情况,或者这只是我计算机中的问题?

0 个答案:

没有答案