$ PORT = 4000 node app.js
bash: PORT: command not found
如上怎么解决
代码如下:
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.set('views','./views');
app.set('view engine','jade');
app.listen(port);
console.log(port);
_潇潇暮雨
相关分类