增加启动调试

This commit is contained in:
2025-10-27 15:07:20 +08:00
parent 5b9495ab9a
commit 420fbf44d0
10 changed files with 19 additions and 653 deletions

View File

@@ -6,16 +6,19 @@
'use strict';
const express = require('express');
const path = require('path');
// Constants
const PORT = 3000;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello remote world!\n');
});
// 提供 favicon.ico 静态资源
app.use('/favicon.ico', express.static(path.join(__dirname, 'favicon.ico')));
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);