无法让NodeJs App在Openshift上运行

时间:2017-06-07 01:35:48

标签: node.js mongodb openshift

我正在尝试在Openshift上托管一个简单的nodejs应用程序。这是回购: https://github.com/ndevilla511/mean-trail-blog

这是应用程序运行的pod中的日志。

Environment: 
DEV_MODE=false
NODE_ENV=production
DEBUG_PORT=5858
Launching via npm...
npm info it worked if it ends with ok
npm info using npm@3.10.9
npm info using node@v6.9.1
npm info lifecycle MEAN-trail-blog@4.0.0-alpha~prestart: MEAN-trail-
blog@4.0.0-alpha
npm info lifecycle MEAN-trail-blog@4.0.0-alpha~start: MEAN-trail-blog@4.0.0-
alpha

node app.js

Magic happens on port 8080
Db.prototype.authenticate method will no longer be available in the next 
major release 3.x as MongoDB 3.6 will only allow auth against users in the 
admin db and will no longer allow multiple credentials on a socket. Please a 
authenticate using MongoClient.connect with auth credentials.
Mongoose connected to mongodb://admin:password@mongodb/meanblog

看起来服务器正在侦听端口8080,并且能够连接我在Openshift上的同一个项目中设置的MongoDB数据库。 我已经为它暴露了一条路线,但当我转到该链接时,我得到一个503和一个页面,上面写着应用程序不可用。只需要帮助就能指明正确的方向

0 个答案:

没有答案