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).
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: