first commit
This commit is contained in:
1
node+vue/shop-fend/run/.pydio
Normal file
1
node+vue/shop-fend/run/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
813861c9-d420-4845-a7ba-f19e9fc4d24d
|
||||
20
node+vue/shop-fend/run/package.json
Executable file
20
node+vue/shop-fend/run/package.json
Executable file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "run",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "pm2 start server.js --watch -i max --name fend",
|
||||
"restart": "pm2 restart server.js",
|
||||
"stop": "pm2 stop fend",
|
||||
"list": "pm2 list",
|
||||
"log": "pm2 logs"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "~4.16.0"
|
||||
}
|
||||
}
|
||||
8
node+vue/shop-fend/run/server.js
Executable file
8
node+vue/shop-fend/run/server.js
Executable file
@@ -0,0 +1,8 @@
|
||||
const express = require('express')
|
||||
const app = express()
|
||||
|
||||
app.use(express.static('./'))
|
||||
|
||||
app.listen(8848, () => {
|
||||
console.log('Example app listening on port 8848!')
|
||||
})
|
||||
Reference in New Issue
Block a user