The following code works fine 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 breed it on azure, I get 500 error. Here are my findings ...
- I accepted this one.
- I tried all possible combinations of server.js, app.js, directory structures, etc.
The code is deployed from the local git repository.
source
share