From 7c0fcd7404d9b5a0171ba1a7426a81d66aad7479 Mon Sep 17 00:00:00 2001 From: blam Date: Sat, 30 Jan 2021 01:44:46 +0100 Subject: [PATCH] chore: added start command to tugboat to wait for the port to become ready before marking as live in tugboat --- .tugboat/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tugboat/config.yml b/.tugboat/config.yml index 594a1044ac..b8c3c127c8 100644 --- a/.tugboat/config.yml +++ b/.tugboat/config.yml @@ -12,3 +12,6 @@ services: build: - yarn install --frozen-lockfile - yarn workspace example-app build + start: + # wget the endpoint. Will retry every 2 seconds. 30 retries = 1m for service to come up. Plenty. + - wget -O /dev/null -o /dev/null --tries=30 --timeout=5 --retry-connrefused http://localhost:7000