怎麼用nodejs開啟網站port
我試了
const listener = app.listen(80, function() {
console.log("Your app is listening on port " + listener.address().port);
});
但無效
可以試試用 process.env.PORT
2 Likes
哦哦我成功了ヽ(^。^)ノ
感謝你的幫助
1 Like
use 8080 and that should work. then again i didnt translate whatever u first said so idk what you even asked.
1 Like