Upgrade an offline OpenREM installation¶
Upgrading OpenREM requires new Python packages to be available as well as the latest version of OpenREM. These can be downloaded on any computer with Python 2.7 installed and an internet connection, though if you have trouble when installing the packages you might need to use a similar computer to the one you are installing on - same operating system and matching 32-bit or 64-bit.
On a computer with internet access¶
In a console, navigate to a suitable place and create a directory to collect all the packages in, then use pip to download them all:
mkdir openremfiles
pip install -d openremfiles openrem==0.8.0
Note
If pip install
complains that -d
is not a valid option, then use the following command instead:
pip download -d openremfiles openrem==0.8.0
Copy everything to the OpenREM server¶
- Copy the directory to the OpenREM server
On the OpenREM server without internet access¶
Back up your database
- For PostgreSQL you can refer to Backup the database
- For a non-production SQLite3 database, simply make a copy of the database file
Stop any Celery workers
If you are using a virtualenv, activate it now, then
pip install --no-index --find-links=openremfiles openrem==0.8.0
Now go back to Update the configuration and update the configuration.