修改README.md
parent
d5a6196d5b
commit
8077d249f6
@ -1,9 +1,16 @@
|
||||
## 马威贸易面试任务
|
||||
|
||||
[Gitee](https://gitee.com/globus/interview-task-repositories)
|
||||
|
||||
```shell
|
||||
npm install # or
|
||||
yarn
|
||||
npm install
|
||||
|
||||
npm run dev
|
||||
|
||||
# or
|
||||
|
||||
npm run build
|
||||
|
||||
npm run deploy
|
||||
|
||||
npm run serve # or
|
||||
yarn serve
|
||||
```
|
@ -0,0 +1,18 @@
|
||||
#!/bin/env node
|
||||
|
||||
const express = require('express')
|
||||
const path = require('path')
|
||||
|
||||
const app = express()
|
||||
|
||||
app.use(express.static(path.resolve(__dirname, 'dist')))
|
||||
|
||||
app.use('/*', (req, res) => {
|
||||
res.sendFile(path.resolve(__dirname, 'dist', 'index.html'))
|
||||
})
|
||||
|
||||
const port = process.env.PORT || 80
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`http://0.0.0.0:${port}`)
|
||||
})
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm install
|
||||
|
||||
npm run build
|
||||
|
||||
npm run deploy
|
Loading…
Reference in New Issue