Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch port to 8181. #275

Merged
merged 1 commit into from
Sep 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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