Browse Source
fix: healthcheck script import
Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3614/head
rare-magma
1 year ago
Failed to extract signature
1 changed files with
2 additions and
2 deletions
-
docker/healthcheck.js
|
|
@ -1,4 +1,4 @@ |
|
|
|
const request = require("node:http"); |
|
|
|
const http = require("node:http"); |
|
|
|
|
|
|
|
const options = { |
|
|
|
host : "localhost", |
|
|
@ -6,7 +6,7 @@ const options = { |
|
|
|
port : "3333", |
|
|
|
}; |
|
|
|
|
|
|
|
const healthCheck = request(options, (res) => { |
|
|
|
const healthCheck = http.request(options, (res) => { |
|
|
|
if (res.statusCode === 200) { |
|
|
|
process.exit(0); |
|
|
|
} |
|
|
|