mark the main process to make it easier to pick process for debug

This commit is contained in:
ArabCoders 2024-02-27 17:17:58 +03:00
parent 0548e5e73a
commit f689b4b7eb
2 changed files with 7 additions and 1 deletions

6
.vscode/launch.json vendored
View file

@ -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}",
}
]
}

View file

@ -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"]