我正在尝试使用命令行工具将一个简单的ExpressJS应用程序部署到Openshift 。我在下面提供了调试跟踪:
>npm info ok
Preparing build for deployment
Deployment id is 5e2abc99
Activating deployment
HAProxy already running
HAProxy instance is started
Starting NodeJS cartridge
Sat Aug 15 2015 15:17:47 GMT-0400 (EDT): Starting application 'xxxxx' ...
Waiting for application port (8080) become available ...
Application 'xxxxx' failed to start (port 8080 not available)
和
Git Post-Receive Result: failure
Activation status: failure
Activation failed for the following gears:
55cf8fc589f5cf9dbf00023c (Error activating gear: CLIENT_ERROR: Failed to execute: 'control start' for /var/lib/openshift/55cf8fc589f5cf9dbf00023c/nodejs
#<IO:0x00000001ec7290>
#<IO:0x00000001ec7218>
>)
Deployment completed with status: failure
postreceive failed
但是我的应用程序正在侦听端口 8080:
app.listen(process.env.OPENSHIFT_NODEJS_PORT || 8080);
任何人都可以帮忙吗?
部署一个空的应用程序似乎不会引发任何错误。