【发布时间】:2016-03-21 03:43:47
【问题描述】:
以下代码在本地完美运行...
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send("Hello World");
});
var port = 8080;
app.listen(port, function () {
console.log('Server started and is listening on port ' + port);
});
但是当我将它部署到天蓝色时,我得到一个 500 错误。这是我的发现...
- 我已经拿了这个advice
- 已经尝试了 server.js、app.js、目录结构等所有可能的组合。
代码正在从本地 git 存储库部署。
【问题讨论】:
-
您使用的是 Azure Web 应用程序还是虚拟机?
-
肯定是 Azure Web 应用程序..
标签: node.js azure azure-web-app-service