Desktop/server/index.js

13 lines
316 B
JavaScript
Raw Normal View History

2024-08-03 12:01:18 +00:00
const express = require('express')
const path = require('path')
const app = express()
app.use(express.static(path.join(__dirname, './client')))
const server = app.listen(25565, function () {
const host = server.address().address
const port = server.address().port
console.log('服务启动', host, port)
})