-
Notifications
You must be signed in to change notification settings - Fork 0
GeoNode Update
Using the source installer we can keep updating tracking the latest commits from the branch we are using.
You can choose to manage the lastest updates as it serves better to your usage, fetch and merge, cherry-pick or by a plain and simple pull.
For simplicity purpose we'll go with git pull.
The standard Geonode repository for this installer is,
/opt/geonode
The staticfiles app collects static files from each of your applications (and any other places you specify) into a single location that can easily be served in production.
Let's say someone updates a less file and created a new build of our styles you might need to run collectstatic
Migrations are Django’s way of propagating changes you make to your models (adding a field, deleting a model, etc.) into your database schema, if some of the latest changes some model has changed then migration is necessary.
Login and move to the repository directory and activate the venv,
su geonode
cd /opt/geonode/
workon geonode
Here you can use your preferred git strategy, for simplicity we'll fallback to git pull,
git pull
We'll run django updates all the time in order to avoid missing out some change that could impact one or the other on the latest commits,
python manage.py collectstatic --no-input
python manage.py makemigrations
python manage.py migrate
Restart uWSGI service
sudo service uwsgi restart
© Copyright 2020, SwITNet Ltd, CC-SA