Skip to content

Commit

Permalink
fix: actually mount notes directory
Browse files Browse the repository at this point in the history
Notes directory could be added via `tutor mounts add ./edx-notes-api`,
but it was not actually being mounted.
  • Loading branch information
regisb authored and DawoudSheraz committed Nov 1, 2024
1 parent 33e38b7 commit fb0477a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/20241017_233457_regis_meilisearch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Bugfix] Actually mount edx-notes-api repositories from host on `tutor mounts add /path/to/edx-notes-api`. (by @regisb)
3 changes: 3 additions & 0 deletions tutornotes/patches/local-docker-compose-jobs-services
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ notes-job:
DJANGO_SETTINGS_MODULE: notesserver.settings.tutor
volumes:
- ../plugins/notes/apps/settings/tutor.py:/app/edx-notes-api/notesserver/settings/tutor.py:ro
{%- for mount in iter_mounts(MOUNTS, "notes") %}
- {{ mount }}
{%- endfor %}
depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}
3 changes: 3 additions & 0 deletions tutornotes/patches/local-docker-compose-services
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ notes:
volumes:
- ../plugins/notes/apps/settings/tutor.py:/app/edx-notes-api/notesserver/settings/tutor.py:ro
- ../../data/notes:/app/data
{%- for mount in iter_mounts(MOUNTS, "notes") %}
- {{ mount }}
{%- endfor %}
restart: unless-stopped
depends_on: {{ [("mysql", RUN_MYSQL)]|list_if }}
2 changes: 1 addition & 1 deletion tutornotes/templates/notes/apps/settings/tutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"default": {
"ENGINE": "django.db.backends.mysql",
"HOST": "{{ MYSQL_HOST }}",
"PORT": {{MYSQL_PORT}},
"PORT": {{ MYSQL_PORT }},
"NAME": "{{ NOTES_MYSQL_DATABASE }}",
"USER": "{{ NOTES_MYSQL_USERNAME }}",
"PASSWORD": "{{ NOTES_MYSQL_PASSWORD }}",
Expand Down

0 comments on commit fb0477a

Please sign in to comment.