-
Notifications
You must be signed in to change notification settings - Fork 15
Updating from upstream
CIVET is under frequent development and it is probably a good idea to keep your installation up to date.
The basic method is just to run git pull in your CIVET directory. This assumes that your origin is at github.com/idaholab/civet and your only local modifications are civet/settings.py. Occasionally there are changes to civet/settings.py that might prevent the pull from working, so you would need to do something like:
git stash
git pull
git stash pop
You would then need to fix any conflicts like you regularly would with git. There might also be some database changes required. Running:
./manage.py makemigrations
./manage.py migrate
will update the database. These commands are safe to run even if there wasn't any database changes.
If you are running your server with the built in web server then you can restart the server to have the changes take effect. If you are running a separate web server then you might need to run the command:
./manage.py collectstatic
to update any static files that have changed. Then restart the server for changes to take effect.
The client does not get updated nearly as often as the server. You only need to restart the client if there are changes in one of the client/*.py files.