Skip to content

Commit 4fc67ad

Browse files
committed
Change port number for each app
1 parent 4b00275 commit 4fc67ad

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app-express.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ app.get('/', function(req, res){
55
res.send('Hello World');
66
});
77

8-
app.listen(3000);
8+
app.listen(3001);
99

10-
console.log('Server running at http://127.0.0.1:3000/');
10+
console.log('Server running at http://127.0.0.1:3001/');

app-localized.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ app.get('/', function(req, res){
2121
res.render( "localized.html" );
2222
});
2323

24-
app.listen(3000);
24+
app.listen(3004);
2525

26-
console.log('Server running at http://127.0.0.1:3000/');
26+
console.log('Server running at http://127.0.0.1:3004/');

app-normal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ var http = require('http');
33
http.createServer(function (req, res) {
44
res.writeHead(200, {'Content-Type': 'text/plain'});
55
res.end('Hello World\n');
6-
}).listen(8000);
6+
}).listen(3000);
77

8-
console.log('Server running at http://127.0.0.1:8000/');
8+
console.log('Server running at http://127.0.0.1:3000/');

app-render.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ app.get('/', function(req, res){
1010
res.render( "nunjucks.html", { helloworld: "Hello World"});
1111
});
1212

13-
app.listen(3000);
13+
app.listen(3003);
1414

15-
console.log('Server running at http://127.0.0.1:3000/');
15+
console.log('Server running at http://127.0.0.1:3003/');

app-static.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ var app = express();
33

44
app.use(express.static(__dirname + '/public'));
55

6-
app.listen(3000);
6+
app.listen(3002);
77

8-
console.log('Server running at http://127.0.0.1:3000/');
8+
console.log('Server running at http://127.0.0.1:3002/');

0 commit comments

Comments
 (0)