Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Open
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
6 changes: 3 additions & 3 deletions application.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ app.use('/stats', counters.router);
// Important that this is last!
app.use(mbaasExpress.errorHandler());

var port = process.env.FH_PORT || process.env.VCAP_APP_PORT || 8001;

app.listen(port, function() {
var port = process.env.FH_PORT || process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || 8001;
var host = process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0';
app.listen(port, host, function() {
log.info('app started on port: %s', port);
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rhmap-express-template",
"version": "0.1.0",
"version": "0.1.1",
"description": "A Red Hat Mobile Cloud Application template that uses express.",
"main": "application.js",
"scripts": {
Expand Down Expand Up @@ -34,7 +34,7 @@
"body-parser": "^1.15.0",
"express": "^4.13.4",
"fh-bunyan": "^0.1.3",
"fh-mbaas-api": "^5.5.6",
"fh-mbaas-api": "5.13.12",
"lodash": "^4.6.1",
"safejson": "^1.0.1",
"verror": "^1.6.1"
Expand Down