diff --git a/.vscode/launch.json b/.vscode/launch.json index 64a27dee..aec48f1b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -34,6 +34,12 @@ "YTP_URL_HOST": "http://localhost:8081", "YTP_LOG_LEVEL": "DEBUG" } + }, + { + "name": "Python: attach to process.", + "type": "debugpy", + "request": "attach", + "processId": "${command:pickProcess}", } ] } diff --git a/Dockerfile b/Dockerfile index 0ea0dd14..2737937f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,4 +67,4 @@ HEALTHCHECK --interval=10s --timeout=20s --start-period=10s --retries=3 CMD [ "/ ENTRYPOINT ["/entrypoint.sh"] -CMD ["/app/.venv/bin/python", "/app/app/main.py"] +CMD ["/app/.venv/bin/python", "/app/app/main.py", "--mainprocess"]