I've tried various fixes, such as the package.json
changes:
"scripts": {
"start": "node app.js --websocket-port=$OPENSHIFT_NODEJS_PORT --log-level=1"
},
main: "app.js",
...
Setting the ip and port to the environment variables:
app.set('port', process.env.OPENSHIFT_NODEJS_PORT || process.env.OPENSHIFT_INTERNAL_PORT || 8080);
app.set('ipaddress', process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1");
var server = app.listen(app.get('port'), app.get('ipaddress'), function() {
debug('Express server listening on port ' + server.address().port);
});
Whenever I push to the git repository the console tells me the application has started without issue. Yet I still get the 503 error.
I've also tried restarting the app by ssh
'ing in and running gear restart
.
For the first 15 seconds or so I get a Layer 7 Invalid Response
from HAProxy, and after that a Layer 7 timeout
I'm at my wits end with this app. What can I be doing wrong?
Aucun commentaire:
Enregistrer un commentaire