Skip to content

Commit 618c749

Browse files
authored
Fixes PORT env Capitlization Error in Templates (#1411)
Issue #1410 **Bug** `env.port` is lower case in our web templates. **Fix** Uppercase env var. Closes #1410
1 parent 9e20237 commit 618c749

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Nodejs/Product/Nodejs/ProjectTemplates/AzureNodejsApp/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
var http = require('http');
3-
var port = process.env.port || 1337;
3+
var port = process.env.PORT || 1337;
44

55
http.createServer(function (req, res) {
66
res.writeHead(200, { 'Content-Type': 'text/plain' });

Nodejs/Product/Nodejs/ProjectTemplates/NodejsWebApp/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
var http = require('http');
3-
var port = process.env.port || 1337;
3+
var port = process.env.PORT || 1337;
44

55
http.createServer(function (req, res) {
66
res.writeHead(200, { 'Content-Type': 'text/plain' });

0 commit comments

Comments
 (0)