ho schierato un app loopback a Heroku, ma si blocca di continuo con l'erroreTimeout porta la distribuzione loopback app per Heroku
Web process failed to bind to $PORT within 60 seconds of launch
so che potrebbe essere collegato alla porta dinamica di Heroku, così ho impostato il mio porta all'ambiente di processo che si sta facendo
app.start = function() {
// start the web server
var port = process.env.PORT || 3000;
app.set('port', port);
app.use(loopback.static(path.resolve(__dirname, '../client')));
app.use(loopback.static(path.resolve(__dirname, '../.tmp')));
return app.listen(function() {
app.emit('started');
console.log('Web server listening at: %s', app.get('url'));
});
};
ma questo non ha risolto il problema.
Qualche idea?
Non è stata associata alcuna porta. Prova 'app.listen (app.get ('port'), ...)' – hassansin