Описание изменений

This commit is contained in:
2025-03-20 12:06:03 +03:00
parent 9d2a829cd6
commit fe9783e814
17 changed files with 131 additions and 620 deletions

View File

@@ -65,10 +65,11 @@ app.get('/api/health', (req, res) => {
});
// Запуск сервера
app.listen(PORT, async () => {
const host = app.get('host');
app.listen(PORT, host, async () => {
try {
await initServices();
console.log('Server is running on port', PORT);
console.log(`Server is running on http://${host}:${PORT}`);
} catch (error) {
console.error('Error starting server:', error);
process.exit(1);