diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 86b78797..afb65ba4 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -6,6 +6,6 @@ services: build: . sut: image: alpine - command: sh -c 'wget -qO- ihatemoney:8000/health | grep "OK"' + command: sh -c 'wget -qO- ihatemoney:8000/healthcheck | grep "OK"' depends_on: - ihatemoney diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 37a37c3d..65570beb 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -151,7 +151,7 @@ def pull_project(endpoint, values): # redirect to authentication page raise Redirect303(url_for(".authenticate", project_id=project_id)) -@main.route("/health", methods=["GET"]) +@main.route("/healthcheck", methods=["GET"]) def health(): return "OK"