I'm using loopback.io which base on expressjs and I tried to add port as the first parameter of app.listen
like this:
// server.js
app.start = function() {
// start the web server
return app.listen(80, function() {
app.emit('started');
console.log('Web server listening at: %s', app.get('url'));
});
};
But it doesn't work.
I have been searching for this for awhile but I haven't found the solution yet.