Cylc-flow: Cylc Review WSGI script not a callable?

Created on 29 Nov 2018  路  4Comments  路  Source: cylc/cylc-flow

The docs currently point to use review.py as the WSGI script. But that script has only a class, used by CherryPy.

The WSGI application callable is actually in bin/cylc-review. I think cylc-review is to rose/bush.

Perhaps we should move the main method to review.py, and call the module as in rose/rose-bush? Haven't thought much about it, just realized it while trying to set up Nginx + WSGI (which works, by the way, for Cylc Review).

bug

All 4 comments

A quick way to test it too:

uwsgi --plugins python,http --need-app --enable-threads --uid uwsgi --pythonpath /opt/cylc/lib/ --wsgi-file /opt/cylc/bin/cylc-review --http :3031

That starts the bundled HTTP server, running the WSGI application provided via --wsgi-file. Just need uwsgi and its Python plug-in package under Ubuntu.

Yes. We should either fix the docs or move the logic.

As a quick fix to close this, I'm going to fix the docs. Is that OK with you @kinow (you had assigned yourself to this PR).

Oh, I think I planned to work on this, but completely forgot. Feel free to re-assign, and +1 to fixing the docs :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kinow picture kinow  路  4Comments

oliver-sanders picture oliver-sanders  路  3Comments

dpmatthews picture dpmatthews  路  3Comments

hjoliver picture hjoliver  路  5Comments

hjoliver picture hjoliver  路  5Comments