Skip to content

Commit 69aa708

Browse files
committed
Update serverConfig.md
Updates documentation to handle newbie Windows developer hiccup.
1 parent b09bb4f commit 69aa708

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/serverConfig.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33

44
The PrairieLearn server is configured by a JSON file called `config.json` in the current directory when the server is started (with `node server.js`). By default there is no configuration file and a default configuration will be used.
55

6-
To configure the server, add a file `config.json` (normally this would be in the `PrairieLearn/backend` directory). A typical example is:
6+
To configure the server, add a file `config.json` (normally this would be in the `PrairieLearn/backend` directory). A typical example in MacOS or Linux is:
77

88
{
99
"courseDir": "/Users/mwest/git/pl-tam212"
1010
}
1111

12+
If you're developing in Windows, you'll need to escape the backslashes in the path with another blackslash. i.e.
13+
14+
{
15+
"courseDir": "D:\\GitHub\\pl-tam212"
16+
}
17+
1218
The format of `config.json` is specified by the [backend config JSON schema](https://github.com/PrairieLearn/PrairieLearn/blob/master/backend/schemas/backendConfig.json).

0 commit comments

Comments
 (0)