Courses not showing up in PrairieLearn production #6042
-
Hello, I'm trying to get a production PL instance set up, and I'm making some progress (thanks to help from @nwalters512 and @Prostigus so far!) We've got Google auth setup with myself as admin, and are running in "Production": But I'm having trouble having my courses show up. In my
There is some confusion on whether it's I am fairly confident my docker volumes setup correctly, because I've bash'd into it and I can see the course repos in the docker container:
and
and even the I wondered if this was permissions related, and I see this:
Is there a step I'm missing somewhere to get the courses show up? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To first answer the question about the config: you don't need to prefix the keys with To answer the main question here: And that page is only made available in development mode: Line 538 in 3f0a2de This is by design: in production environments, we don't maintain a hardcoded list of courses in the config file. Instead, you need to visit the admin page and use the "Add course" button. You can then fill in the appropriate information, including the Git repository where it should be cloned from. |
Beta Was this translation helpful? Give feedback.
To first answer the question about the config: you don't need to prefix the keys with
config.
, e.g. justcourseDirs
is the correct key. The file you linked to fromconfig.courseDirs
is a JavaScript file, andconfig
is the name of the object that holds all the config values.To answer the main question here:
courseDirs
is only useful in development mode. That is, it's only used in theinstructorLoadFromDisk
page:PrairieLearn/pages/instructorLoadFromDisk/instructorLoadFromDisk.js
Line 43 in 3f0a2de
And that page is only made available in development mode:
PrairieLearn/server.js
Line 538 in 3f0a2de