Skip to content

Commit

Permalink
Merge pull request #55 from ImperialCollegeLondon/startup-bug
Browse files Browse the repository at this point in the history
Fix Issue where the OVE spaces are not linking to the dash app on startup
  • Loading branch information
AdrianDAlessandro authored Nov 2, 2023
2 parents ef96b75 + 9341e39 commit d4b1457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM python:3.10
COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
COPY ./app/ ./app
CMD python app/core_api.py; gunicorn --reload -b 0.0.0.0:8050 app.app:server
CMD python -m app.core_api; gunicorn --reload -b 0.0.0.0:8050 app.app:server
2 changes: 1 addition & 1 deletion app/core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

def wait_for_ove() -> None:
"""Function to wait for the OVE Core API to be available after startup."""
while requests.get(API_URL).status_code != 200:
while requests.get(f"{API_URL}/app/html").status_code != 200:
time.sleep(5)


Expand Down

0 comments on commit d4b1457

Please sign in to comment.