Make discovery more debuggable

This commit is contained in:
Régis Behmo 2020-01-08 22:28:12 +01:00
parent 5a8bb91551
commit 63a2ee0eda
2 changed files with 6 additions and 2 deletions

View File

@ -70,7 +70,9 @@ Debugging
To debug the course discovery service, you are encouraged to mount the course-discovery repo from the host in the development container:
tutor dev run -v ~/projets/openedx/repos/course-discovery/:/openedx/discovery -p 8000:8000 discovery
tutor dev runserver -v ~/projets/openedx/repos/course-discovery/:/openedx/discovery discovery
You can then access the development server at http://localhost:8381. Feel free to add breakpoints (``import pdb; pdb.set_trace()``) anywhere in your source code to debug your application.
License
-------

View File

@ -1,4 +1,6 @@
discovery:
environment:
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor.development
command: ./manage.py runserver 0.0.0.0:8000
command: ./manage.py runserver 0.0.0.0:8000
ports:
- "8381:8000"