mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 13:17:59 +08:00
.github
data
db
extra
compile-install-script.ps1
healthcheck.js
install.batsh
mark-as-nightly.js
reset-password.js
update-version.js
kubernetes
public
server
src
test
.dockerignore
.editorconfig
.eslintrc.js
.gitignore
.stylelintrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
SECURITY.md
docker-compose.yml
dockerfile
index.html
install.sh
package-lock.json
package.json
tsconfig.json
vite.config.js
20 lines
409 B
JavaScript
20 lines
409 B
JavaScript
let http = require("http");
|
|
let options = {
|
|
host: "localhost",
|
|
port: "3001",
|
|
timeout: 2000,
|
|
};
|
|
let request = http.request(options, (res) => {
|
|
console.log(`STATUS: ${res.statusCode}`);
|
|
if (res.statusCode == 200) {
|
|
process.exit(0);
|
|
} else {
|
|
process.exit(1);
|
|
}
|
|
});
|
|
request.on("error", function (err) {
|
|
console.log("ERROR");
|
|
process.exit(1);
|
|
});
|
|
request.end();
|