fix npm start error

beta
Bosn 7 years ago
parent b4c8ad8827
commit effe02be46

@ -20,6 +20,10 @@ RAP2是在RAP1基础上重做的新项目它包含两个组件(对应两个Gi
## Deployment 部署
### enviaronment requirements 环境要求
* Node.js 8.9.4+
* MySQL 5.7+
### development 开发模式
```sh

@ -6,7 +6,7 @@ enum methods { GET= 'GET', POST= 'POST', PUT= 'PUT', DELETE= 'DELETE' }
@Table({ paranoid: true, freezeTableName: false, timestamps: true })
export default class Interface extends Model<Interface> {
public static METHODS= methods
public static METHODS = methods
public request?: object
public response?: object

@ -1,9 +1,9 @@
import config from '../config'
import app from './app'
const start = () => {
// https://github.com/node-modules/graceful
const graceful = require('graceful')
const now = () => new Date().toISOString().replace(/T/, ' ').replace(/Z/, '')
const app = require('./app')
const { serve: { port } } = config
const server = app.listen(port, () => {
console.log(`[${now()}] worker#${process.pid} rap2-dolores is running as ${port}`)

Loading…
Cancel
Save