Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
406 B
JavaScript
28 lines
406 B
JavaScript
const http = require('http');
|
|
|
|
const options = {
|
|
hostname: 'localhost',
|
|
port: 3001,
|
|
path: '/health',
|
|
method: 'GET',
|
|
timeout: 2000
|
|
};
|
|
|
|
const req = http.request(options, (res) => {
|
|
if (res.statusCode === 200) {
|
|
process.exit(0);
|
|
} else {
|
|
process.exit(1);
|
|
}
|
|
});
|
|
|
|
req.on('error', () => {
|
|
process.exit(1);
|
|
});
|
|
|
|
req.on('timeout', () => {
|
|
req.abort();
|
|
process.exit(1);
|
|
});
|
|
|
|
req.end(); |