oil-station/fuintCashier/server/index.js

13 lines
316 B
JavaScript
Raw Normal View History

2024-08-16 18:26:19 +08: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)
})