I have a server that won't start correctly on 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:
info: socket.io started warn: error raised: Error: listen EACCES DEBUG: Program node server.js exited with code 0 DEBUG: Starting child process with 'node server.js' Listening on 8080...
How can I solve this?