cedadev / swallow

Swallow - a Birdhouse WPS for running the NAME Trajectory code.
Other
0 stars 1 forks source link

Updated: cli.py with "--outputpath" and "--outputurl" #29

Closed agstephens closed 2 years ago

agstephens commented 2 years ago

Tiny PR to allow the swallow command to dynamically set the outputpath and outputurl so that output files can be successfully downloaded. Useful on our staging server.

Example use:

vulture start -d --outputurl=http://ceda-wps-staging.ceda.ac.uk/outputs --outputpath=/gws/nopw/j04/ceda_wps/birds/test/outputs/vulture

Note: make restart will not keep these changes. The changes are cached in: ./.custom.cfg - which gets written by start and restart.

agstephens commented 2 years ago

@alaniwi please review just so you have seen this. It is only relevant if:

  1. You are running the daemon (in test mode) from the command-line (e.g. swallow start ....)
  2. If you want users to be able to download outputs via the staging server UI.