I have a server that will not start correctly in openshift. This is my code:
var connect = require("connect");
var port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
var httpServer = connect.createServer(connect.static(__dirname + "/public")).listen(port);
console.log("Listening on " + port + "...");
I keep getting this error:
information: socket.io running warning: error raised: Error: listen to EACCES DEBUG: The node server.js program exited with code 0 DEBUG: starting the child process using
How can i solve this?
source
share