Is it some command exist to run my node.js code with directly specified port?
something like node server.js port=7777
?
my server.js code looks like this
http.createServer(function (req, res) {
if (mount(req, res)) return;
}).listen(process.env.PORT || 80);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…