Setting the port for node.js server on Heroku

前端 未结 6 1521
醉梦人生
醉梦人生 2020-11-30 09:51

I launched a node.js server with the following line to set the port:

app.set(\'port\', process.env.PORT || 8080);

This means that, it shoul

6条回答
提交回复
热议问题