-
Notifications
You must be signed in to change notification settings - Fork 2
Update instructions
To update the app, navigate to your instructor_pilot
directory do the following:
-
First, download the latest version of the app with Git:
git pull
-
Update the app dependencies in the conda environment:
conda update -n base -c defaults conda conda env update --file environment.yml --name <name-of-your-conda-env> --prune
This might take a few minutes and the dependencies change rarely, so in most cases you can skip this step. After this command successfully completes, you can free up disk space by running
conda clean -a
(this will remove all installation caches). -
Update the database structure and existing data:
conda activate <name-of-your-conda-env> python manage.py makemigrations python manage.py migrate
-
Important: Restart the server, open the app in your browser and empty the cache. Different browsers and operating systems have different keyboard shortcuts for that. For example, in Chrome on Windows or Linux, you can press
Ctrl + Shift + R
to do this (Cmd + Shift + R
on Mac), while other browsers may require you to pressCtrl + F5
.
Note
If you are using the new React UI at http://localhost:5173/
, then additionally navigate to the directory frontend
and run npm install
.