Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cylc Review WSGI script not a callable? #2896

Closed
kinow opened this issue Nov 29, 2018 · 4 comments
Closed

Cylc Review WSGI script not a callable? #2896

kinow opened this issue Nov 29, 2018 · 4 comments
Assignees
Labels
bug Something is wrong :(
Milestone

Comments

@kinow
Copy link
Member

kinow commented Nov 29, 2018

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

@kinow kinow self-assigned this Nov 29, 2018
@kinow kinow added the bug? Not sure if this is a bug or not label Nov 29, 2018
@kinow kinow added this to the later milestone Nov 29, 2018
@kinow
Copy link
Member Author

kinow commented Nov 29, 2018

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.

@matthewrmshin
Copy link
Contributor

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

@hjoliver hjoliver self-assigned this Jan 15, 2019
@hjoliver hjoliver modified the milestones: later, next-release Jan 15, 2019
@hjoliver
Copy link
Member

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

@kinow
Copy link
Member Author

kinow commented Jan 15, 2019

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

@hjoliver hjoliver added bug Something is wrong :( and removed bug? Not sure if this is a bug or not labels Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

No branches or pull requests

3 participants