添加自动映射端口并尝试添加工作流
This commit is contained in:
14
server.js
14
server.js
@@ -1,12 +1,13 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
/*
|
||||
* Copyright (c) Mengning Software. 2025. All rights reserved.
|
||||
* Authors: DevStar Team,
|
||||
* Create: 2025-12-09
|
||||
* Description: TODO
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
// Constants
|
||||
const PORT = 3000;
|
||||
@@ -17,8 +18,5 @@ 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}`);
|
||||
Reference in New Issue
Block a user