port use with proccess.env.PORT for heroku

This commit is contained in:
Arjun Patel
2018-07-23 21:20:55 -07:00
parent df3c21f81b
commit 7d03d42977
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ var con = mysql.createConnection({
database: 'nexto' database: 'nexto'
}); });
var port = 3000; var port = process.env.PORT || 3000;
server.listen(port, () => console.log('serving on port: ' + port)); server.listen(port, () => console.log('serving on port: ' + port));
app.get('/', function (req, res) { app.get('/', function (req, res) {
+11
View File
@@ -0,0 +1,11 @@
Stack trace:
Frame Function Args
001802FEA18 0018005D14E (0018022B7F0, 0018021DC39, 001802FEA18, 000FFFFBA10)
001802FEA18 00180046609 (00000000000, 00000000003, 00000000000, 000C0000000)
001802FEA18 00180046642 (00000000000, 001802FED28, 001802FEA18, 0060003A3B8)
001802FEA18 00180057602 (00000000000, 000FFFFCC36, 000FFFFCC52, 0018021C490)
000FFFFCCB0 00180057687 (205C735C2D5C205C, 535C535C415C505C, 205C265C265C205C, 6F5C685C635C655C)
000FFFFCCB0 00180046DA5 (00000000000, 00000000000, 00000000000, 00000000000)
00000000000 00180045873 (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0 00180045924 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace