Where did you add “new_org.localhost”? I don’t see nginx.conf, but can see env/apps/nginx/extra.conf
Where are you now seeing the catalogue?
I am struggling with getting my LMS (localhost) to communicate with the discover app.
Could you advice if we have configured in similar ways or if there are anythings I’ve missed?
I am running tutor V3.12.5, which is running inside a venv.
Steps taken:
-
Enabled discover and ecommerce
$ tutor plugins enable discovery ecommerce
$ tutor local quickstart -
Created super users for both discover and ecommerce
$ tutor local run ecommerce ./manage.py createsuperuser
$ tutor local run discovery ./manage.py createsuperuser -
Checked applications were running by navigating to http://discovery.localhost and http://ecommerce.localhost. Both look to be running with access to the admin panels after login in
-
Add new catalogue in discovery containing all courses - http://discovery.localhost/admin/catalogs/catalog/add/
Name: myCat
Query: GET /api/v1/search/courses -
Add new enterprise customer - http://localhost/admin/enterprise/enterprisecustomer/add/
No catalogues listed in the drop down selector.
Clicking ‘Create a new catalogue’ attempts to go to http://discovery:8000/admin/catalogs/catalog/add/, but returns ‘server not found’
Expected it to point at discover.localhost -
Add Catalog integration - http://localhost/admin/catalog/catalogintegration/add/
Set Internal API URL: http://discovery.localhost/api/v1
Prompt states DEPRECATED: Use the setting COURSE_CATALOG_API_URL -
Check if catalogue is visible at http://localhost/admin/enterprise/enterprisecustomer/add/
Catalogues are now visible but ‘View catalog …’ and Create a new catalog’ still point to ‘discover:8000’ -
Set
COURSE_CATALOG_API_URL = "http://discovery:8000"
as suggested [here] (Lms <-> discovery communication). First tried this by setting in cms.env.json and lms.env.json, but then
Ran
$ tutor config printvalue COURSE_CATALOG_API_URL
and got http://discovery.localhost.
Ran
$ tutor config save --set COURSE_CATALOG_API_URL=“http://discovery:8000”
$ tutor config printvalue COURSE_CATALOG_API_URL
and got http://discovery:8000http://discover:8000 still responds with ‘Server not found’