Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Closed Issue: BUG: http server works fine but smallest express version fails in Azure [1521]

$
0
0
The following boilerplate http server works just fine in Azure:

```
var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port);
```

However, if I add 'express' the Azure site has an internal 500 server error.

```
var express = require('express');
var server = express();

server.listen('80');

```

Any ideas?

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>