Skip to content

sci wms on geoport

Rich Signell edited this page Jul 27, 2015 · 8 revisions

The best way to install sci-wms would be with Docker, but unfortunately the OS and kernel version on geoport is too old to run Docker.

So sci-wms is running in a custom conda environment called sci-wms, which contains the requirements for sci-wms. This can be activated by typing source activate sci-wms.

Once the environment is activated, the requirements that sci-wms depends on can be updated by doing: conda install sci-wms because the conda sci-wms package is really just a meta-package that installed the required packages that sci-wms depends on. Unfortunately it's not possible to install sci-wms itself, as sci-wms has a deploy script with a lot of complex stuff going on so it was not possible to simply package it as a conda module.

To download the lastest sci-wms, follow the instructions here: http://sci-wms.github.io/sci-wms/docs/installation.html#updating

rsignell@gam:~$ 
sudo supervisorctl  stop sciwms  # as rsignell, who has sudo rights
sudo su - usgs
cd /home/usgs/python/sci-wms
git pull
source deactivate
source activate sci-wms
DJANGO_SETTINGS_MODULE="sciwms.settings.prod" python manage.py migrate  # takes a while
exit  #return to rsignell, who has sudo rights
sudo supervisorctl start sciwms