Skip to content

Courses not showing up in PrairieLearn production #6042

Answered by nwalters512
firasm asked this question in Q&A
Discussion options

You must be logged in to vote

To first answer the question about the config: you don't need to prefix the keys with config., e.g. just courseDirs is the correct key. The file you linked to from config.courseDirs is a JavaScript file, and config 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 the instructorLoadFromDisk page:

And that page is only made available in development mode:

require('./pages/instructorLoadFromDis…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@firasm
Comment options

Answer selected by jonatanschroeder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants