Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Updating The App

Ben C edited this page Mar 21, 2022 · 5 revisions

To update the website, you'll first want to stop the site in IIS.
Stop IIS Next, you'll want to pull from the GitHub repository where updates have taken place.
Navigate to the CodeReview directory and open a new powershell window.

git init
git pull

This will pull changes off of GitHub.
Before running any statements below, make sure you've activated the virtual environment by running

pipenv shell

This will ensure that you have access to the correct python environment with the python command.

Next, you'll need to apply any changes in the database by running

python manage.py migrate

Then, update any static files

python manage.py collectstatic --no-input

(say yes to any warnings about overriding old files.)

Optionally, you can run tests to ensure everything works correctly

python run_tests.py

Finally, start your IIS site again
Start IIS