The following code runs perfectly locally...
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);
});
But when i deploy it to azure I get a 500 error. Here is my findings...
- I have taken this advice
- Have tried all possible combinations of server.js, app.js, directory structure etc.
The code is being deployed from a local git repo.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…