Skip to content

Commit

Permalink
Merge pull request #275 from draios/change-example-port
Browse files Browse the repository at this point in the history
Switch port to 8181.
  • Loading branch information
mstemm authored Sep 18, 2017
2 parents 240a8ff + 30ebfd4 commit 5bb94c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/nodejs-bad-rest-api/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ express_server:
working_dir: /usr/src/app
command: bash -c "npm install && node server.js"
ports:
- "8080:8080"
- "8181:8181"
volumes:
- ${PWD}:/usr/src/app

Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs-bad-rest-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ var express = require('express'); // call express
var app = express(); // define our app using express
var child_process = require('child_process');

var port = process.env.PORT || 8080; // set our port
var port = process.env.PORT || 8181; // set our port

// ROUTES FOR OUR API
// =============================================================================
var router = express.Router(); // get an instance of the express Router

// test route to make sure everything is working (accessed at GET http://localhost:8080/api)
// test route to make sure everything is working (accessed at GET http://localhost:8181/api)
router.get('/', function(req, res) {
res.json({ message: 'API available'});
});
Expand Down

0 comments on commit 5bb94c8

Please sign in to comment.