Running PrairieLearn Locally with Docker
We edit locally (via Docker) and push to GitHub. Before using PrairieLearn each time, pull the latest changes and then sync inside PL.
Update your local clone
In your course repository folder:
git status
git pull
This ensures your local files match the remote (e.g., origin/main
).
Pull from remote in the PL UI
In the PrairieLearn web interface:
- Go to your Course.
- In the left side navigation, click Sync.
- Confirm the Remote repository (e.g.,
git@github.com:PrairieLearn/pl-ucsb-cmpsc5a.git
). - Click
Pull from remote git repository
(button next to the remote URL).
This refreshes the course view that PL serves from your mounted repo
Notes & Tips
- SSH vs HTTPS: If using
git@github.com:...
, make sure your machine has the right SSH keys set up. HTTPS works fine for public repos.