PermafrostServerDiluvium: Difference between revisions

From CSDMS
m Use included Miniconda install instructions
m Words
Line 11: Line 11:
The install directory for this server is '''/data/web/htdocs/wmt/api/permafrost'''.
The install directory for this server is '''/data/web/htdocs/wmt/api/permafrost'''.


  mkdir -p /data/web/htdocs/wmt/api/permafrost
  install_dir=/data/web/htdocs/wmt/api/permafrost
cd /data/web/htdocs/wmt/api/permafrost
  mkdir -p $install_dir
  install_dir=$(pwd)


==Install Python==
==Install Python==

Revision as of 15:41, 27 February 2018

wmt-permafrost server on diluvium

Instructions for installing and configuring a WMT server on diluvium for the wmt-permafrost instance.

--Mpiper (talk) 13:59, 27 February 2018 (MST)

Set install directory

The install directory for this server is /data/web/htdocs/wmt/api/permafrost.

install_dir=/data/web/htdocs/wmt/api/permafrost
mkdir -p $install_dir

Install Python

Install a Python distribution to be used locally by WMT. We like to use Miniconda.

cd $install_dir
curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -o miniconda.sh
bash ./miniconda.sh -f -b -p $(pwd)/conda
export PATH=$(pwd)/conda/bin:$PATH

If working with an existing Miniconda install, be sure to update everything before continuing:

conda update conda
conda update --all

Install and configure server

Get the server install script and run it.

curl -O https://raw.githubusercontent.com/csdms/wmt/master/scripts/install
python ./install --with-python=$(which python) $(pwd)

This makes a fresh set of database files. Users will have to create a new login. (This is something that needs to be changed. I can't copy over the users.db file from another WMT instance because the client sets up the user tag, used to distinguish public and private models, when the user creates a login.)