Commit 8eec3e9f authored by 姚广胤's avatar 姚广胤

修改端口

parent ad664a71
......@@ -2,7 +2,7 @@
* @Author: ygy
* @Date: 2018-03-14 19:40:01
* @Last Modified by: ygy
* @Last Modified time: 2018-03-16 14:43:33
* @Last Modified time: 2018-03-16 14:50:17
*/
const Koa = require('koa');
const send = require('koa-send');
......@@ -68,5 +68,5 @@ const j = schedule.scheduleJob({ hour: 16 }, function() {
console.log('执行任务结束');
});
app.listen(3000);
console.log('Project is running at http://localhost:3000/');
app.listen(5000);
console.log('Project is running at http://localhost:5000/');
......@@ -36,6 +36,6 @@ app.use('/private', function(req, res) {
app.use(require('./mock/router/router'));
console.log(`<http://localhost:8086> with Chrome`);
console.log(`<http://localhost:5001> with Chrome`);
module.exports = app;
......@@ -11,7 +11,7 @@ var http = require('http');
* Get port from environment and store in Express.
*/
var port = normalizePort(process.env.PORT || 8086);
var port = normalizePort(process.env.PORT || 5001);
app.set('port', port);
/**
......
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