fix: server star message

This commit is contained in:
suxiaoxin 2018-02-01 17:46:45 +08:00
parent 9eaf0ccc78
commit 68ac06f4e0
2 changed files with 2 additions and 2 deletions

View File

@ -57,4 +57,4 @@ app.use(koaStatic(
));
app.listen(yapi.WEBCONFIG.port);
commons.log(`the server is start at port ${yapi.WEBCONFIG.port}`);
commons.log(`the server is start at 127.0.0.1${ yapi.WEBCONFIG.port == '80' ? '' : ':' + yapi.WEBCONFIG.port}`);

View File

@ -32,7 +32,7 @@ function connect(callback) {
});
db.then(function () {
yapi.commons.log('mongodb load success ..., please visit localhost:3000');
yapi.commons.log('mongodb load success...');
if(typeof callback === 'function'){
callback.call(db)