在我的日志上进行Heroku部署尝试:
2017-01-05T13:22:25.579047 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /favicon.ico" host = fwc-node.herokuapp.com request_id = 7c8a5b24-4af5-4c1b-a0d1-c373b4916459 fwd =" 2.102.204.147" dyno = connect = service = status = 503 bytes =
2017-01-05T13:22:25.288450 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /" host = fwc-node.herokuapp.com request_id = 47e66938-a57d-4d83-b1cf-220030adb90e fwd =" 2.102.204.147" dyno = connect = service = status = 503 bytes =
2017-01-05T13:22:25.543923 + 00:00 heroku [router]:at = error code = H10 desc =" App崩溃" method = GET path =" /favicon.ico" host = fwc-node.herokuapp.com request_id = 10baa1a5-bcfc-496d-ae3a-f0dab4c01b36 fwd =" 2.102.204.147" dyno = connect = service = status = 503 bytes =
这是我的包.json { " name":" application", "版本":" 0.0.2", "私人":"真", "脚本":{ " start":" node ./bin/www" }, "依赖":{ " bcrypt-nodejs":" 0.0.3", "身体解析器":" ~1.13.2", " connect-flash":" ^ 0.1.1", " connect-mongo":" ^ 1.3.2", " cookie-parser":" ~1.3.5", " csurf":" ^ 1.9.0", "调试":" ~2.2.0", "表达":" ^ 4.13.4", " express-handlebars":" ^ 3.0.0", " express-session":" ^ 1.14.2", " express-validator":" ^ 3.1.1", " hbs":" ~3.1.0", " mongodb":" ^ 2.2.17", " mongoose":" ^ 4.7.4", "摩根":" ~1.6.1", "节点":" 0.0.0", " nodemon":" ^ 1.11.0", "护照":" ^ 0.3.2", "本地护照":" ^ 1.0.0", " serve-favicon":" ~2.3.0", " session":" ^ 0.1.0", " stripe":" ^ 4.14.0" } }
和Procfile web:node ./bin/www
我试过Heroku重启并得到了这个: var bson = new BSON([BSON.Binary,BSON.Code,BSON.DBRef,BSON.Decimal128, TypeError:BSON不是构造函数
无法预先感谢它为什么不会部署!