Upgrade to 3.3¶
Last Updated: August 2020
This document provides a recommendation for how to upgrade Tethys Platform to new versions.
Upgrading 3.X Versions¶
Tethys Platform has become much more stable as of version 3.0 and you shouldn't expect many major breaking changes between different minor versions (e.g. 3.0, 3.1, 3.2). In other words, apps that work in 3.0 should work in 3.1 without any changes. The following steps can be used as a general guide, but additional steps may be required for your specific installation.
Review the What's New documentation before attempting any upgrade, especially on production servers.
conda activate tethys
Update the Tethys Platform conda package and dependencies by installing the new version of Tethys Platform:
conda install -c tethysplatform -c conda-forge tethys-platform=3.*
Migrate the Tethys Platform database tables:
tethys db migrate
Make any changes to your apps if necessary. This should only be the case when upgrading between major versions (e.g. 3.0 to 4.0). See the What's New documentation for detailed notes on what changes occur in each release.
In previous versions of Tethys Platform it was required to backup the
settings.py file before upgrading and then copy your custom settings from the backup to the new
settings.py file after upgrading. As of version 3.0, this should no longer be the case. All custom settings should be defined in the
portal_config.yml, which is preserved during upgrades. See: Tethys Portal Configuration for more details.
Additional Upgrade Steps for Production Installations¶
The following additional steps may be required for production server upgrades.
Collect static files:
tethys manage collectstatic
Restart Daphne and NGINX servers:
sudo supervisorctl restart all