Commit 955eabf8 authored by wty's avatar wty

修改服务器启动代码1

parent 0b8abee9
......@@ -5,7 +5,6 @@ const logger = require('morgan');
const bodyParser = require('body-parser')
const engines = require('consolidate')
const os = require('os')
const indexRouter = require('./routes');
const usersRouter = require('./routes/users');
const queryRouter = require('./routes/query')
const addRouter = require('./routes/add')
......@@ -13,7 +12,6 @@ const deleteRouter = require('./routes/delete')
const updateRouter = require('./routes/update')
const submitRouter = require('./routes/page')
const typeManage = require('./routes/typeManage')
const Mysql = require('./SQLPool')
const app = express();
global.domain = 'http://' + os.networkInterfaces()['eth0'][0]['address'] + ':3000'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment