# wmt-metadata

Metadata for components used by the CSDMS Web Modeling Tool (WMT).

Prepare to install components into a WMT server
by setting
the name of the WMT executor and
the paths to where WMT is installed on the server and the executor.

    export wmt_project=_testing  # change this
    export wmt_executor="beach.colorado.edu"
    export wmt_executor_username=$USER  # change this
    export wmt_executor_path=/home/csdms/wmt/$wmt_project
    export wmt_server_path=/data/web/htdocs/wmt/api/$wmt_project

Install the components with

    bash ./scripts/install-components.sh

This pulls component information from the executor into the server.

The ownership of all WMT server files is by the group `nobody`,
so `sudo` privileges on the server machine
are needed to install the components.

To instead install components manually, use

```
ssh $wmt_executor_username@$wmt_executor PATH=$wmt_executor_path/conda/bin:\$PATH cmt-config > wmt-config-beach.yaml
sudo rm -rf $wmt_server_path/db/components
sudo cp -r metadata/ $wmt_server_path/db/components
sudo chown -R $USER $wmt_server_path/db/components
./scripts/build-metadata ./wmt-config-beach.yaml --prefix=$wmt_server_path/db/components
```

# wmt-metadata

Metadata for components used by the CSDMS Web Modeling Tool (WMT).

Prepare to install components into a WMT server
by setting
the name of the WMT executor and
the paths to where WMT is installed on the server and the executor.

    export wmt_project=_testing  # change this
    export wmt_executor="beach.colorado.edu"
    export wmt_executor_username=$USER  # change this
    export wmt_executor_path=/home/csdms/wmt/$wmt_project
    export wmt_server_path=/data/web/htdocs/wmt/api/$wmt_project

Install the components with

    bash ./scripts/install-components.sh

This pulls component information from the executor into the server.

The ownership of all WMT server files is by the group `nobody`,
so `sudo` privileges on the server machine
are needed to install the components.

To instead install components manually, use

```
ssh $wmt_executor_username@$wmt_executor PATH=$wmt_executor_path/conda/bin:\$PATH cmt-config > wmt-config-$wmt_executor.yaml
sudo rm -rf $wmt_server_path/db/components
sudo cp -r metadata/ $wmt_server_path/db/components
sudo chown -R $USER $wmt_server_path/db/components
./scripts/build-metadata ./wmt-config-$wmt_executor.yaml --prefix=$wmt_server_path/db/components
```

Use siwenna.colorado.edu in wmt-config filename
Use siwenna.colorado.edu in wmt-config filename
