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
5 changes: 3 additions & 2 deletions application.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ app.use(fhRestExpress('users', fhRestMemoryAdapter()));
// Important that this is last!
app.use(mbaasExpress.errorHandler());

var port = process.env.FH_PORT || process.env.VCAP_APP_PORT || 9001;
app.listen(port, function() {
var port = process.env.FH_PORT || process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || 9001;
var host = process.env.OPENSHIFT_NODEJS_IP || '0.0.0.0';
app.listen(port, host, function() {
log.info('App started at: %s on port: %s', new Date(), port);
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-rest-service-template",
"version": "0.1.0",
"version": "0.1.1",
"description": "Sample MBaaS Service demonstrating the use of fh-rest-express-router and fh-rest-memory-adapter",
"main": "application.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"env-var": "^1.0.0",
"express": "^4.14.0",
"fh-bunyan": "^0.1.3",
"fh-mbaas-api": "^5.5.6",
"fh-mbaas-api": "5.13.12",
"fh-rest-memory-adapter": "~0.2.0",
"fh-rest-express-router": "~0.4.3"
},
Expand Down