Skip to content

Commit

Permalink
Enabled debugging for Python backend
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Nov 6, 2023
1 parent 14aba58 commit ed34db6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ dist
# .vscode
.vscode/
!.vscode/tasks.json
!.vscode/launch.json

# Ignore Jupyter Notebook files
*.ipynb
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
dockerfile: backend.Dockerfile
ports:
- 5000:5000
- 5678:5678
environment:
- UVICORN_PORT=5000
- UVICORN_RELOAD=true
Expand All @@ -34,6 +35,12 @@ services:
- CODESPACE_NAME # Automatically set env. variable by GitHub codespace
volumes:
- ./backend/src:/home/appuser/backend/src
command:
[
"sh",
"-c",
"pip install debugpy && python -m debugpy --listen 0.0.0.0:5678 -m uvicorn --proxy-headers --host=0.0.0.0 $${UVICORN_ENTRYPOINT}",
]

backend-user-session:
build:
Expand Down

0 comments on commit ed34db6

Please sign in to comment.