Skip to content

Commit

Permalink
build: add vs code debug lauch config
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Jul 28, 2024
1 parent 4947b89 commit 030d66e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
35 changes: 33 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ cairosvg = "^2.7.0"
python-dotenv = "^1.0.0"
ruff = "^0.4.4"
mkdocs = "^1.5.3"
debugpy = "^1.8.2"

[tool.poetry.scripts]
-c = "poethepoet:main"
Expand Down Expand Up @@ -200,6 +201,12 @@ cmd = "infisical run --env=dev -- poetry run opentelemetry-instrument --logs_exp
args = [{ name = "port", default = 8501, type = "integer" }]
env = { WATCHDOG_LOG_LEVEL = "ERROR", PYTHONPATH = "${PWD}/web/:${PWD}/source/:${PWD}/../docq-extensions/source/" }

[tool.poe.tasks.run-otel-infisical-debugpy]
cmd = "infisical run --env=dev -- poetry run opentelemetry-instrument --logs_exporter none python -Xfrozen_modules=off -m debugpy --listen 5678 --wait-for-client streamlit run web/index.py --server.port $port --browser.gatherUsageStats false --server.runOnSave true --server.fileWatcherType auto"
args = [{ name = "port", default = 8501, type = "integer" }]
env = { WATCHDOG_LOG_LEVEL = "ERROR", PYTHONPATH = "${PWD}/web/:${PWD}/source/:${PWD}/../docq-extensions/source/" }


[tool.poe.tasks.run-simple]
cmd = "infisical run --env=dev -- poetry run streamlit run web/index.py --server.port $port --browser.gatherUsageStats false --server.runOnSave true --server.fileWatcherType auto"
args = [{ name = "port", default = 8501, type = "integer" }]
Expand Down

0 comments on commit 030d66e

Please sign in to comment.