Skip to content

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood authored and Faraz32123 committed Jul 1, 2024
1 parent e7cee67 commit a40d767
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tutordiscovery/patches/local-docker-compose-dev-services
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ discovery:
stdin_open: true
tty: true
volumes:
- ../../data/discovery-media:/openedx/discovery/course_discovery/media
- ../../data/discovery/media:/openedx/discovery/course_discovery/media
{%- for mount in iter_mounts(MOUNTS, "discovery") %}
- {{ mount }}
{%- endfor %}
Expand Down
2 changes: 1 addition & 1 deletion tutordiscovery/patches/local-docker-compose-services
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ discovery:
restart: unless-stopped
volumes:
- ../plugins/discovery/apps/settings/tutor:/openedx/discovery/course_discovery/settings/tutor:ro
- ../../data/discovery-media:/openedx/discovery/course_discovery/media
- ../../data/discovery/media:/openedx/discovery/course_discovery/media
depends_on:
- lms
{% if RUN_MYSQL %}- mysql{% endif %}
Expand Down
3 changes: 0 additions & 3 deletions tutordiscovery/templates/discovery/build/discovery/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ COPY --chown=app:app assets.py ./course_discovery/settings/assets.py
RUN DJANGO_SETTINGS_MODULE=course_discovery.settings.assets make static

# Create media directory to serve media files
# have to change user at this step, as it gives permission error
User app
RUN mkdir course_discovery/media
User root

# Run production server
ENV DJANGO_SETTINGS_MODULE=course_discovery.settings.tutor.production
Expand Down

0 comments on commit a40d767

Please sign in to comment.