aktueller stand

This commit is contained in:
2025-12-15 16:49:37 +01:00
parent b71d99b048
commit 1555dc02e9
3 changed files with 47 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ const { v4: uuidv4 } = require('uuid');
const path = require('path');
const fs = require('fs');
const crypto = require('crypto');
const os = require('os');
const app = express();
const PORT = process.env.PORT || 3000;
@@ -6000,6 +6001,22 @@ app.get('/health', (req, res) => {
startAutomationWorker();
function logRuntimeInfo() {
let osPretty = '';
try {
const raw = fs.readFileSync('/etc/os-release', 'utf8');
const match = raw.match(/^PRETTY_NAME="?(.*?)"?$/m);
if (match && match[1]) {
osPretty = match[1];
}
} catch (error) {
// ignore
}
const osInfo = osPretty || `${os.platform()} ${os.release()}`;
console.log(`Runtime: Node ${process.version}, OS ${osInfo}`);
}
app.listen(PORT, '0.0.0.0', () => {
logRuntimeInfo();
console.log(`Server running on port ${PORT}`);
});