Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #444 from Blackmist/fixing-website

changing case on process.env.port to process.env.PORT
  • Loading branch information...
commit e58fb8d5f81541d74a2b11c7930d028b365673f9 2 parents 5eed225 + 70d5040
@mollybostic mollybostic authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 DevCenter/Node/Tutorials/create-and-deploy-a-website-Mac.md
View
4 DevCenter/Node/Tutorials/create-and-deploy-a-website-Mac.md
@@ -50,13 +50,13 @@ Follow these steps to create a Windows Azure Web Site, and then enable Git publi
##Build and test your application locally
-In this section, you will create a **server.js** file containing the 'hello world' example from [nodejs.org]. This example has been modified from the original example by adding process.env.port as the port to listen on when running in a Windows Azure Web Site.
+In this section, you will create a **server.js** file containing the 'hello world' example from [nodejs.org]. This example has been modified from the original example by adding process.env.PORT as the port to listen on when running in a Windows Azure Web Site.
1. Using a text editor, create a new file named **server.js** in the **helloworld** directory. If the **helloworld** directory does not exist, create it.
2. Add the following as the contents of the **server.js** file, and then save it:
var http = require('http')
- var port = process.env.port || 1337;
+ var port = process.env.PORT || 1337;
http.createServer(function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
Please sign in to comment.
Something went wrong with that request. Please try again.