Make discovery more debuggable
This commit is contained in:
parent
5a8bb91551
commit
63a2ee0eda
@ -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
|
||||
-------
|
||||
|
||||
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user