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

tests/docs: allow local development on port other than 5000 #524

Open
GraemeWatt opened this issue Jul 19, 2022 · 0 comments
Open

tests/docs: allow local development on port other than 5000 #524

GraemeWatt opened this issue Jul 19, 2022 · 0 comments
Labels
complexity: low priority: low type: bug Indicates an unexpected problem or unintended behaviour

Comments

@GraemeWatt
Copy link
Member

GraemeWatt commented Jul 19, 2022

For local development, the web app is deployed at http://localhost:5000. It might be useful to explain in the docs how to deploy the web app at a port other than 5000 by setting the Flask environment variable FLASK_RUN_PORT. However, some of the tests would also need to be modified to avoid hard-coding the URL http://localhost:5000 and instead get the port from the FLASK_RUN_PORT if set, otherwise use a default of 5000.

This issue arose because the new Airplay Receiver functionality on macOS Monterey means that Control Center listens on port 5000 by default and hence needs to be turned off before starting the HEPData web app at http://localhost:5000.

@GraemeWatt GraemeWatt added type: bug Indicates an unexpected problem or unintended behaviour priority: low complexity: low labels Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: low priority: low type: bug Indicates an unexpected problem or unintended behaviour
Projects
Status: To do
Development

No branches or pull requests

1 participant