{"action":"created","issue":{"url":"https://api.github.com/repos/yuanzm/microblog/issues/2","labels_url":"https://api.github.com/repos/yuanzm/microblog/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/yuanzm/microblog/issues/2/comments","events_url":"https://api.github.com/repos/yuanzm/microblog/issues/2/events","html_url":"https://github.com/yuanzm/microblog/issues/2","id":104409911,"number":2,"title":"关于db.js里设置数据库的端口 Connection.DEFAULT_PORT","user":{"login":"WriterLuo","id":4233820,"avatar_url":"https://avatars.githubusercontent.com/u/4233820?v=3","gravatar_id":"","url":"https://api.github.com/users/WriterLuo","html_url":"https://github.com/WriterLuo","followers_url":"https://api.github.com/users/WriterLuo/followers","following_url":"https://api.github.com/users/WriterLuo/following{/other_user}","gists_url":"https://api.github.com/users/WriterLuo/gists{/gist_id}","starred_url":"https://api.github.com/users/WriterLuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WriterLuo/subscriptions","organizations_url":"https://api.github.com/users/WriterLuo/orgs","repos_url":"https://api.github.com/users/WriterLuo/repos","events_url":"https://api.github.com/users/WriterLuo/events{/privacy}","received_events_url":"https://api.github.com/users/WriterLuo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T06:17:54Z","updated_at":"2015-09-02T08:31:02Z","closed_at":null,"body":"module.exports = new Db(settings.db, new Server(settings.host, Connection.DEFAULT_PORT, {}), {safe: true});\r\n\r\n启动express会报错\r\n\r\nCannot read property 'DEFAULT_PORT' of undefined\r\n\r\n需要把 Connection.DEFAULT_PORT 改成 mongodb的默认端口号 20717 就好了。不知道有没有遇到过这样的情况？或者说有什么解决方法，直接写端口号有点生硬..."},"comment":{"url":"https://api.github.com/repos/yuanzm/microblog/issues/comments/136975622","html_url":"https://github.com/yuanzm/microblog/issues/2#issuecomment-136975622","issue_url":"https://api.github.com/repos/yuanzm/microblog/issues/2","id":136975622,"user":{"login":"yuanzm","id":6168796,"avatar_url":"https://avatars.githubusercontent.com/u/6168796?v=3","gravatar_id":"","url":"https://api.github.com/users/yuanzm","html_url":"https://github.com/yuanzm","followers_url":"https://api.github.com/users/yuanzm/followers","following_url":"https://api.github.com/users/yuanzm/following{/other_user}","gists_url":"https://api.github.com/users/yuanzm/gists{/gist_id}","starred_url":"https://api.github.com/users/yuanzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuanzm/subscriptions","organizations_url":"https://api.github.com/users/yuanzm/orgs","repos_url":"https://api.github.com/users/yuanzm/repos","events_url":"https://api.github.com/users/yuanzm/events{/privacy}","received_events_url":"https://api.github.com/users/yuanzm/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T08:31:02Z","updated_at":"2015-09-02T08:31:02Z","body":"应该是MongoDB的API变化导致，下班有空的时候再去看看"}}