Custom development settings
In general, it should be easier to debug discovery in development mode, with the docker-compose service now running the "runserver" command. It is now possible to debug the discovery service by mounting the host repo.
This commit is contained in:
parent
c9beec9d67
commit
67b1672560
4
tutordiscovery/patches/local-docker-compose-dev-services
Normal file
4
tutordiscovery/patches/local-docker-compose-dev-services
Normal file
@ -0,0 +1,4 @@
|
||||
discovery:
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor.development
|
||||
command: ./manage.py runserver 0.0.0.0:8000
|
||||
@ -1,10 +1,10 @@
|
||||
discovery:
|
||||
image: {{ DOCKER_REGISTRY }}{{ DISCOVERY_DOCKER_IMAGE }}
|
||||
environment:
|
||||
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor
|
||||
DJANGO_SETTINGS_MODULE: course_discovery.settings.tutor.production
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../plugins/discovery/apps/settings/tutor.py:/openedx/discovery/course_discovery/settings/tutor.py:ro
|
||||
- ../plugins/discovery/apps/settings/tutor:/openedx/discovery/course_discovery/settings/tutor:ro
|
||||
- ../../data/discovery/media:/openedx/discovery/course_discovery/media
|
||||
depends_on:
|
||||
- mysql
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
from .production import *
|
||||
|
||||
SECRET_KEY = "{{ DISCOVERY_SECRET_KEY }}"
|
||||
ALLOWED_HOSTS = [
|
||||
"localhost",
|
||||
@ -77,6 +75,4 @@ EDX_DRF_EXTENSIONS = {
|
||||
'OAUTH2_USER_INFO_URL': '{% if ACTIVATE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}/oauth2/user_info',
|
||||
}
|
||||
|
||||
STATIC_ROOT = "/openedx/static"
|
||||
COMPRESS_ENABLED = True
|
||||
COMPRESS_OFFLINE = True
|
||||
STATIC_ROOT = "/openedx/static"
|
||||
@ -0,0 +1,3 @@
|
||||
from ..devstack import *
|
||||
|
||||
{% include "discovery/apps/settings/partials/common.py" %}
|
||||
@ -0,0 +1,6 @@
|
||||
from ..production import *
|
||||
|
||||
{% include "discovery/apps/settings/partials/common.py" %}
|
||||
|
||||
COMPRESS_ENABLED = True
|
||||
COMPRESS_OFFLINE = True
|
||||
Loading…
x
Reference in New Issue
Block a user