Skip to content

Commit e4cba15

Browse files
author
Thijs de Vries
committed
Add healthcheck.js baseUrl support
1 parent 7a684fd commit e4cba15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/healthcheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const exit = (healthy) => process.exit(healthy === true ? 0 : 1)
3333

3434
const check = () => Promise.all([
3535
checkMongoDB(config.dbUrl),
36-
checkServer(`http://localhost:${ config.port }`),
37-
checkApi(`http://localhost:${ config.port }/.well-known/apollo/server-health`),
36+
checkServer(`http://localhost:${ config.port }${ config.baseUrl }/`),
37+
checkApi(`http://localhost:${ config.port }${ config.baseUrl }/.well-known/apollo/server-health`),
3838
])
3939

4040
const handleSuccess = () => {

0 commit comments

Comments
 (0)