init
This commit is contained in:
12
fuintCashier/server/index.js
Normal file
12
fuintCashier/server/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
})
|
||||
Reference in New Issue
Block a user