13. Upgrading CRATE¶
Under Windows:
Activate your CRATE virtual environment. We use a batch file to do this, but from the command prompt, the command will be something like
C:\srv\crate\crate_virtualenv\Scripts\activate
. (If you use a batch file, you mustCALL
this activation script.) If you want to check which Python virtual environment is activated, you can do this:python
import sys print(sys.executable)
You can show current version numbers with
pip freeze
.Make sure that nobody’s doing anything important! You could use tools like procexp64 [1].
Run the Windows Service Manager (if you can’t find it on the menus, run
services.msc
from the command line). Stop the service named “CRATE web service”.To see which versions of CRATE are available from PyPI, you can issue an “install” command using a nonexistent version number:
pip install crate_anon==999
.Install the version you want, e.g.:
pip install crate_anon==0.18.50
.Use Service Manager to restart the CRATE service.
If it doesn’t start, check the CRATE Django log, fix the problem (maybe your configuration file has errors in it), and restart the service.
Footnotes
[1] | Windows Sysinternals Process Explorer: https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer |