13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
|
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)
|
||
|
})
|