rufuspollock-okfn / reconcile-csv

A simple OpenRefine reconciliation service that runs on top of a CSV file
BSD 2-Clause "Simplified" License
117 stars 28 forks source link

Running service not on localhost #24

Open tow opened 8 years ago

tow commented 8 years ago

I want to run reconcile-csv remotely. However, the service metadata is hardcoded to localhost:8000 - see https://github.com/okfn/reconcile-csv/blob/master/src/reconcile_csv/core.clj#L48

In fact, it turns out that running the service remotely and connecting to it via open-refine under a non-localhost address actually works fine anyway and supports 99% of the functionality. However it fails after reconciliation, when clicking on a reconciliation choice to see preview details (not quite sure but I think this is the same as the invocation of the Preview API, see https://github.com/OpenRefine/OpenRefine/wiki/Reconciliation-Service-API#preview-api). When you click on a link, openrefine tries to open up the url at http://localhost:8000/view/ - which of course doesn't exist, since the reconciliation service is running remotely.

Can you provide some command line switch to allow overriding the URLs used in service-metadata?

Also, there is a minor typo in the metadata: s/flyout_sercice_path/flyout_service_path/

Toby