osprey

Logo

A Web Processing Service for RVIC streamflow routing model

View the Project on GitHub pacificclimate/osprey

Configuration

Command-line options

You can overwrite the default PyWPS configuration by using command-line options. See the osprey help which options are available:

(venv)$ osprey start --help
--hostname HOSTNAME        hostname in PyWPS configuration.
--port PORT                port in PyWPS configuration.

Start service with different hostname and port:

(venv)$ osprey start --hostname localhost --port 5000

Use a custom configuration file

You can overwrite the default PyWPS configuration by providing your own PyWPS configuration file (just modifiy the options you want to change). Use one of the existing sample-*.cfg files as example and copy them to etc/custom.cfg.

For example change the hostname (demo.org) and logging level:

$ cd osprey
$ vim etc/custom.cfg
$ cat etc/custom.cfg
[server]
url = http://demo.org:5000/wps
outputurl = http://demo.org:5000/outputs

[logging]
level = DEBUG

Start the service with your custom configuration:

# start the service with this configuration
(venv)$ osprey start -c etc/custom.cfg