const express = require('express')
const app = express()
app.use(express.static('./dist'))
app.listen(8081, () => {
console.log('server running... at http://127.0.0.1:8081')
})
// 开启静态压缩
const compression = require('compression')
app.use(compression())
pm2 start .app.js --name web_shop